diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index e3892c9..78b90b8 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -93,7 +93,7 @@ class Pterodactyl(commands.Cog): if chat_message: info = await self.get_info(chat_message['username']) if info is not None: - await self.send_chat_discord(info['username'], info['message'], info['avatar']) + await self.send_chat_discord(chat_message['username'], chat_message['message'], info['data']['player']['avatar']) if json.loads(message)['event'] == 'status': current_status = json.loads(message)['args'][0]