diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 3ade407..7f4d078 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -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."""