From 80cb729e72cb0221e33e54144bfe27a74c957e1e Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 5 Mar 2024 02:19:59 -0500 Subject: [PATCH] fix(pterodactyl): make sure views get removed properly --- pterodactyl/pterodactyl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 42b7ccc..b616479 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -128,7 +128,7 @@ class Pterodactyl(commands.Cog): if view.result is True: await message.edit(content="Sending websocket command to start server...", view=None) await self.websocket.send(json.dumps({"event": "set state", "args": ["start"]})) - await message.edit(content="Server starting...") + await message.edit(content="Server starting...", view=None) else: await message.edit(content="Cancelled.", view=None) @@ -146,7 +146,7 @@ class Pterodactyl(commands.Cog): if view.result is True: await message.edit(content="Sending websocket command to stop server...", view=None) await self.websocket.send(json.dumps({"event": "set state", "args": ["stop"]})) - await message.edit(content="Server stopping...") + await message.edit(content="Server stopping...", view=None) else: await message.edit(content="Cancelled.", view=None) @@ -162,7 +162,7 @@ class Pterodactyl(commands.Cog): if view.result is True: await message.edit(content="Sending websocket command to restart server...", view=None) await self.websocket.send(json.dumps({"event": "set state", "args": ["restart"]})) - await message.edit(content="Server restarting...") + await message.edit(content="Server restarting...", view=None) else: await message.edit(content="Cancelled.", view=None)