forked from blizzthewolf/SeaCogs
fix(pterodactyl): awaited a coroutine
This commit is contained in:
parent
3d8f479347
commit
ff93fd8527
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue