From fed6790122b1e134882db6bc8033e6e3a319b109 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 23 Jul 2023 12:49:58 -0400 Subject: [PATCH] fix: fixed power commands failing to load --- pterodactyl/ptero.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 3c72c90..ee03d11 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -128,7 +128,7 @@ class Pterodactyl(commands.Cog): power = app_commands.Group(name='power', description="Controls the server's power state.") @power.command(name='start', description="Starts the server.") - @power.guild_only() + @app_commands.guild_only() async def start(self, interaction: discord.Interaction): """Starts the server.""" await interaction.response.defer(ephemeral=True, thinking=True) @@ -153,7 +153,7 @@ class Pterodactyl(commands.Cog): await message.delete(delay=3) @power.command(name='restart', description="Restarts the server.") - @power.guild_only() + @app_commands.guild_only() async def restart(self, interaction: discord.Interaction): """Restarts the server.""" await interaction.response.defer(ephemeral=True, thinking=True) @@ -181,7 +181,7 @@ class Pterodactyl(commands.Cog): await message.delete(delay=3) @power.command(name='stop', description="Stops the server.") - @power.guild_only() + @app_commands.guild_only() async def stop(self, interaction: discord.Interaction): """Stops the server.""" await interaction.response.defer(ephemeral=True, thinking=True)