From f707b7009752011ae8f5e764dae2c8750020cf01 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Mar 2024 00:13:43 -0500 Subject: [PATCH] fix(pterodactyl): fixed broken slash commands --- pterodactyl/pterodactyl.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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."""