Module dscord.bot.command
Utilties for building user-controlled commands with the dscord bot interface
Functions
Name | Description |
---|---|
Command
|
A UDA that can be used to flag a function as a command handler. |
CommandDescription
|
Sets a commands description. |
CommandGroup
|
Sets a commands group .
|
CommandLevel
|
Sets a commands permission level .
|
CommandRegex
|
Sets whether a command uses regex matching |
Classes
Name | Description |
---|---|
CommandEvent
|
Special event encapsulating MessageCreate's, containing specific Bot utilties
and functionality.
|
CommandObject
|
A CommandObject represents the configuration/state for a single command.
|
Structs
Name | Description |
---|---|
CommandDefinition
|
Enums
Name | Description |
---|---|
Level
|
Base set of levels plugins can use. |
Templates
Name | Description |
---|---|
Commandable
|
The Commandable template is a virtual implementation which handles the command
UDAs, storing them within a local "commands " mapping.
|
Aliases
Name | Type | Description |
---|---|---|
CommandHandler
|
void delegate(CommandEvent)
|
A delegate type which represents a function used for handling commands. |
CommandObjectUpdate
|
void delegate(CommandObject)
|
A delegate type which can be used in UDA's to adjust a CommandObjects settings or behavior. |