dscord.bot.command

Utilties for building user-controlled commands with the dscord bot interface

Members

Aliases

CommandHandler
alias CommandHandler = void delegate(CommandEvent)

A delegate type which represents a function used for handling commands.

CommandObjectUpdate
alias CommandObjectUpdate = void delegate(CommandObject)

A delegate type which can be used in UDA's to adjust a CommandObjects settings or behavior.

Classes

CommandEvent
class CommandEvent

Special event encapsulating MessageCreate's, containing specific Bot utilties and functionality.

CommandObject
class CommandObject

A CommandObject represents the configuration/state for a single command.

Functions

CommandDescription
CommandObjectUpdate CommandDescription(string desc)

Sets a commands description.

CommandGroup
CommandObjectUpdate CommandGroup(string group)

Sets a commands group.

CommandLevel
CommandObjectUpdate CommandLevel(uint level)

Sets a commands permission level.

CommandRegex
CommandObjectUpdate CommandRegex(bool rgx)

Sets whether a command uses regex matching

Mixin templates

Commandable
mixintemplate Commandable()

The Commandable template is a virtual implementation which handles the command UDAs, storing them within a local "commands" mapping.

Structs

Command
struct Command

A UDA that can be used to flag a function as a command handler.

Meta