diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 17c594e..0822172 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -128,14 +128,14 @@ class Pterodactyl(commands.Cog): if view.result is True: if isinstance(ctx, discord.Interaction): - await ctx.response.edit_message(content=f"Sending websocket command to {action} server...", view=None) + await ctx.edit_original_response(content=f"Sending websocket command to {action} server...", view=None) else: await message.edit(content=f"Sending websocket command to {action} server...", view=None) await self.websocket.send(json.dumps({"event": "set state", "args": [action]})) if isinstance(ctx, discord.Interaction): - await ctx.response.edit_message(content=f"Server {action_ing}", view=None) + await ctx.edit_original_response(content=f"Server {action_ing}", view=None) else: await message.edit(content=f"Server {action_ing}", view=None)