forked from cswimr/SeaCogs
fix(pterodactyl): maybe fixed hybrid config commands, if this doesn't work, I'll move configuration commands to a separate command
This commit is contained in:
parent
1bb7e22b95
commit
f033f6a483
1 changed files with 5 additions and 5 deletions
|
@ -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."""
|
||||
|
||||
|
|
Loading…
Reference in a new issue