ChatCommandRegistry
A class for the registration and dispatching of message-based commands.
Properties
Functions
Link copied to clipboard
Directly register a ChatCommand to this command registry.
Link copied to clipboard
Given a command name and MessageCreateEvent, try to find a matching command.
Link copied to clipboard
Handles an incoming MessageCreateEvent and dispatches a command invocation, if possible.
Link copied to clipboard
Directly remove a registered ChatCommand from this command registry.
Link copied to clipboard
Check whether the given string starts with a mention referring to the bot. If so, the matching mention string is returned, otherwise null.