C# Class qtbot.CommandPlugin.CommandsPlugin

Show file Open project: stepperman/HB-Discord-Bot Class Usage Examples

Public Methods

Method Description
CommandsPlugin ( DiscordSocketClient client, Func getPermissions = null, char commandChar = '/' ) : System
CreateCommand ( string cmd ) : CommandBuilder
CreateCommandGroup ( string cmd, Action config = null ) : void

Private Methods

Method Description
AddCommand ( Command command ) : void
RaiseCommandError ( CommandArgs args, Exception ex ) : void
RaiseRanCommand ( CommandArgs args ) : void
RaiseUnknownCommand ( CommandArgs args ) : void

Method Details

CommandsPlugin() public method

public CommandsPlugin ( DiscordSocketClient client, Func getPermissions = null, char commandChar = '/' ) : System
client DiscordSocketClient
getPermissions Func
commandChar char
return System

CreateCommand() public method

public CreateCommand ( string cmd ) : CommandBuilder
cmd string
return CommandBuilder

CreateCommandGroup() public method

public CreateCommandGroup ( string cmd, Action config = null ) : void
cmd string
config Action
return void