From fa0a594dd67ad9708b4007dc8efd860e43c380e9 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 16 Jul 2023 14:25:00 -0400 Subject: [PATCH] fix: changed method names of configure api and configure update to prevent update being overriden --- pterodactyl/ptero.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index f61e297..a95e9ec 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -304,15 +304,15 @@ class Pterodactyl(commands.Cog): configure = app_commands.Group(name="config", description="Configures the Pterodactyl cog.") - @configure.command() + @configure.command(name="api", description="Sets the information used to access the Pterodactyl API.") @app_commands.guild_only() - async def api(self, interaction: discord.Interaction): + 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() + @configure.command(name="update", description="Sets the startup arguments for the update command.") @app_commands.guild_only() - async def update(self, interaction: discord.Interaction): + 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))