From a2488a53bd8cad67cbe7a4ffe6a51d71ccf5abde Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 23 Jul 2023 12:51:10 -0400 Subject: [PATCH] fix: and again! (configure commands this time) --- pterodactyl/ptero.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 9aeabe3..9d6acbd 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -310,13 +310,13 @@ class Pterodactyl(commands.Cog): configure = app_commands.Group(name="config", description="Configures the Pterodactyl cog.") @configure.command(name="api", description="Sets the information used to access the Pterodactyl API.") - @configure.guild_only() + @app_commands.guild_only() async def configure_api(self, interaction: discord.Interaction): """Sets the information used to access the Pterdoactyl API.""" await interaction.response.send_modal(self.APIConfigModal(self.config)) @configure.command(name="update", description="Sets the startup arguments for the update command.") - @configure.guild_only() + @app_commands.guild_only() async def configure_update(self, interaction: discord.Interaction): """Sets the startup arguments for the update command.""" await interaction.response.send_modal(self.StartupConfigModal(self.config))