fix: and again! (configure commands this time)
This commit is contained in:
parent
45b6c94f06
commit
a2488a53bd
1 changed files with 2 additions and 2 deletions
|
@ -310,13 +310,13 @@ class Pterodactyl(commands.Cog):
|
||||||
configure = app_commands.Group(name="config", description="Configures the Pterodactyl 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.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):
|
async def configure_api(self, interaction: discord.Interaction):
|
||||||
"""Sets the information used to access the Pterdoactyl API."""
|
"""Sets the information used to access the Pterdoactyl API."""
|
||||||
await interaction.response.send_modal(self.APIConfigModal(self.config))
|
await interaction.response.send_modal(self.APIConfigModal(self.config))
|
||||||
|
|
||||||
@configure.command(name="update", description="Sets the startup arguments for the update command.")
|
@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):
|
async def configure_update(self, interaction: discord.Interaction):
|
||||||
"""Sets the startup arguments for the update command."""
|
"""Sets the startup arguments for the update command."""
|
||||||
await interaction.response.send_modal(self.StartupConfigModal(self.config))
|
await interaction.response.send_modal(self.StartupConfigModal(self.config))
|
||||||
|
|
Reference in a new issue