Config
version: 0.5: Alpha
Documentation automatically generated from docstrings.
Represents a cog that also doubles as a parent :class:discord.app_commands.Group for the application commands defined within it.
This inherits from :class:Cog and the options in :class:CogMeta also apply to this. See the :class:Cog documentation for methods.
Decorators such as :func:~discord.app_commands.guild_only, :func:~discord.app_commands.guilds, and :func:~discord.app_commands.default_permissions will apply to the group if used on top of the cog.
Hybrid commands will also be added to the Group, giving the ability to categorize slash commands into groups, while keeping the prefix-style command as a root-level command.
For example:
.. code-block:: python3
from discord import app_commands
from discord.ext import commands
@app_commands.guild_only()
class MyCog(commands.GroupCog, group_name='my-cog'):
pass
.. versionadded:: 2.0
channel
Usage: /config channel <option> <channel>
Channel configuration for Forum Manager. This command allows you to set the channels used by the bot for various features. For example, you can set the channel where the bot will log automod actions.
Permissions:
Manage Server
roles
Usage: /config roles <option> <role>
This command allows you to set the roles used by the bot for various features. For example, you can set the staff role that the bot will ping for thread updates or the role authorized to manage forum automod actions.
Permissions:
Manage Server
toggles
Usage: /config toggles <key> <action>
This command allows you to enable or disable various features of the bot. You can turn things on or off to best suit your server's needs.
Permissions:
- You'll need the
Manage Serverpermission to use this command.