From f033f6a4830474ef6c2aa183d3326fe02e8b1c12 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Mar 2024 00:21:51 -0500 Subject: [PATCH] fix(pterodactyl): maybe fixed hybrid config commands, if this doesn't work, I'll move configuration commands to a separate command --- pterodactyl/pterodactyl.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index ec07688..4883fdd 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -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"], with_app_command = False) + @pterodactyl.hybrid_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.""" @@ -239,7 +239,7 @@ class Pterodactyl(commands.Cog): await config.invite.set(invite) await ctx.send(f"Invite link set to {invite}") - @pterodactyl_config.group(name = "chat", with_app_command = False) + @pterodactyl_config.hybrid_group(name = "chat", with_app_command = False) async def pterodactyl_config_chat(self, ctx: commands.Context): """Configure chat settings.""" @@ -258,7 +258,7 @@ class Pterodactyl(commands.Cog): await config.chat_command.set(command) await ctx.send(f"Chat command set to:\n{box(command, 'json')}") - @pterodactyl_config.group(name = "regex", with_app_command = False) + @pterodactyl_config.hybrid_group(name = "regex", with_app_command = False) async def pterodactyl_config_regex(self, ctx: commands.Context) -> None: """Set regex patterns.""" @@ -302,7 +302,7 @@ class Pterodactyl(commands.Cog): await config.achievement_regex.set(regex) await ctx.send(f"Achievement regex set to:\n{box(regex, 'regex')}") - @pterodactyl_config.group(name = "messages", aliases = ['msg', 'msgs', 'message'], with_app_command = False) + @pterodactyl_config.hybrid_group(name = "messages", aliases = ['msg', 'msgs', 'message'], with_app_command = False) async def pterodactyl_config_messages(self, ctx: commands.Context): """Configure message settings.""" @@ -345,7 +345,7 @@ class Pterodactyl(commands.Cog): await config.api_endpoint.set(endpoint) await ctx.send(f"API endpoint set to {endpoint}") - @pterodactyl_config_regex.group(name = "blacklist", aliases = ['block', 'blocklist'], with_app_command = False) + @pterodactyl_config_regex.hybrid_group(name = "blacklist", aliases = ['block', 'blocklist'], with_app_command = False) async def pterodactyl_config_regex_blacklist(self, ctx: commands.Context): """Blacklist regex patterns."""