forked from blizzthewolf/SeaCogs
fix(pterodactyl): fixed InteractionResponded error when using a power slash command
This commit is contained in:
parent
dd62b7d7ce
commit
41a8d575d4
1 changed files with 2 additions and 2 deletions
|
@ -128,14 +128,14 @@ class Pterodactyl(commands.Cog):
|
||||||
|
|
||||||
if view.result is True:
|
if view.result is True:
|
||||||
if isinstance(ctx, discord.Interaction):
|
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:
|
else:
|
||||||
await message.edit(content=f"Sending websocket command to {action} server...", view=None)
|
await message.edit(content=f"Sending websocket command to {action} server...", view=None)
|
||||||
|
|
||||||
await self.websocket.send(json.dumps({"event": "set state", "args": [action]}))
|
await self.websocket.send(json.dumps({"event": "set state", "args": [action]}))
|
||||||
|
|
||||||
if isinstance(ctx, discord.Interaction):
|
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:
|
else:
|
||||||
await message.edit(content=f"Server {action_ing}", view=None)
|
await message.edit(content=f"Server {action_ing}", view=None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue