From ff93fd8527e94bbab3f39af0a3be91bfcc9d16e8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 28 Feb 2024 12:47:15 -0500 Subject: [PATCH] fix(pterodactyl): awaited a coroutine --- pterodactyl/pterodactyl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 1f7e0b4..6a1eacb 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -94,7 +94,7 @@ class Pterodactyl(commands.Cog): @commands.Cog.listener() async def on_message(self, message: discord.Message): if message.channel.id == await self.config.console_channel(): - self.websocket.send(json.dumps({"event": "send command", "args": [message.content]})) + await self.websocket.send(json.dumps({"event": "send command", "args": [message.content]})) @commands.group(autohelp = True, name = "pterodactyl", aliases = ["ptero"]) async def pterodactyl(self, ctx: commands.Context):