fix(pterodactyl): fixed broken slash commands
This commit is contained in:
parent
64ab2fbf82
commit
f707b70097
1 changed files with 4 additions and 4 deletions
|
@ -105,11 +105,11 @@ class Pterodactyl(commands.Cog):
|
|||
self.retry_counter = 0
|
||||
self.task = self.get_task()
|
||||
|
||||
@commands.group(autohelp = True, name = "pterodactyl", aliases = ["ptero"])
|
||||
@commands.hybrid_group(autohelp = True, name = "pterodactyl", aliases = ["ptero"])
|
||||
async def pterodactyl(self, ctx: commands.Context) -> None:
|
||||
"""Pterodactyl allows you to manage your Pterodactyl Panel from Discord."""
|
||||
|
||||
@pterodactyl.hybrid_command(name = "command", aliases = ["cmd", "execute", "exec"])
|
||||
@pterodactyl.command(name = "command", aliases = ["cmd", "execute", "exec"])
|
||||
@commands.admin()
|
||||
async def pterodactyl_command(self, ctx: commands.Context, *, command: str) -> None:
|
||||
"""Send a command to the server console."""
|
||||
|
@ -126,7 +126,7 @@ class Pterodactyl(commands.Cog):
|
|||
self.retry_counter = 0
|
||||
self.task = self.get_task()
|
||||
|
||||
@pterodactyl.hybrid_group(autohelp = True, name = "power")
|
||||
@pterodactyl.group(autohelp = True, name = "power")
|
||||
@commands.admin()
|
||||
async def pterodactyl_power(self, ctx: commands.Context) -> None:
|
||||
"""Send power actions to the server."""
|
||||
|
@ -199,7 +199,7 @@ class Pterodactyl(commands.Cog):
|
|||
else:
|
||||
await message.edit(content="Cancelled.", view=None)
|
||||
|
||||
@pterodactyl.group(autohelp = True, name = "config", aliases = ["settings", "set"])
|
||||
@pterodactyl.group(autohelp = True, name = "config", aliases = ["settings", "set"], with_app_command = False)
|
||||
@commands.is_owner()
|
||||
async def pterodactyl_config(self, ctx: commands.Context) -> None:
|
||||
"""Configure Pterodactyl settings."""
|
||||
|
|
Loading…
Reference in a new issue