From 41a8d575d4f209ca11f45fc93442263c6316b7af Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Mar 2024 01:03:36 -0500 Subject: [PATCH] fix(pterodactyl): fixed InteractionResponded error when using a power slash command --- pterodactyl/pterodactyl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)