Class CommandPermissionConfig
- Namespace
- FishMMO.DiscordBot.Data
- Assembly
- FishMMO-DiscordBot.dll
Per-guild command permission configuration. Allows moderators to disable specific commands or require a Discord role to use them. Command keys are lowercase "group command" (e.g. "mod kick") or just "command" for ungrouped commands.
public class CommandPermissionConfig
- Inheritance
-
CommandPermissionConfig
- Inherited Members
Properties
DisabledCommands
Set of disabled command keys. Commands in this set cannot be used in the guild.
public HashSet<string> DisabledCommands { get; set; }
Property Value
RoleRequirements
Command key -> required Discord role ID. Users must have the role to use the command.
public Dictionary<string, ulong> RoleRequirements { get; set; }