C# Class Discord.Commands.CommandService

Inheritance: IService
显示文件 Open project: RogueException/Discord.Net Class Usage Examples

Private Properties

Property Type Description
AddCommand void
IService void
OnCommand void
OnCommandError void
ShowCommandHelp System.Threading.Tasks.Task
ShowCommandHelpInternal void

Public Methods

Method Description
CommandService ( ) : System
CommandService ( Discord.Commands.CommandServiceConfig config ) : System
CommandService ( Discord.Commands.CommandServiceConfigBuilder builder ) : System
CreateCommand ( string cmd ) : Discord.Commands.CommandBuilder
CreateGroup ( string cmd, Action config = null ) : void
ShowCommandHelp ( Discord.Commands.Command command, User user, Channel channel, Channel replyChannel = null ) : System.Threading.Tasks.Task
ShowGeneralHelp ( User user, Channel channel, Channel replyChannel = null ) : System.Threading.Tasks.Task

Private Methods

Method Description
AddCommand ( Discord.Commands.Command command ) : void
IService ( DiscordClient client ) : void
OnCommand ( Discord.Commands.CommandEventArgs args ) : void
OnCommandError ( CommandErrorType errorType, Discord.Commands.CommandEventArgs args, Exception ex = null ) : void
ShowCommandHelp ( Discord.Commands.CommandMap map, User user, Channel channel, Channel replyChannel = null ) : System.Threading.Tasks.Task
ShowCommandHelpInternal ( Discord.Commands.Command command, User user, Channel channel, StringBuilder output ) : void

Method Details

CommandService() public method

public CommandService ( ) : System
return System

CommandService() public method

public CommandService ( Discord.Commands.CommandServiceConfig config ) : System
config Discord.Commands.CommandServiceConfig
return System

CommandService() public method

public CommandService ( Discord.Commands.CommandServiceConfigBuilder builder ) : System
builder Discord.Commands.CommandServiceConfigBuilder
return System

CreateCommand() public method

public CreateCommand ( string cmd ) : Discord.Commands.CommandBuilder
cmd string
return Discord.Commands.CommandBuilder

CreateGroup() public method

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

ShowCommandHelp() public method

public ShowCommandHelp ( Discord.Commands.Command command, User user, Channel channel, Channel replyChannel = null ) : System.Threading.Tasks.Task
command Discord.Commands.Command
user User
channel Channel
replyChannel Channel
return System.Threading.Tasks.Task

ShowGeneralHelp() public method

public ShowGeneralHelp ( User user, Channel channel, Channel replyChannel = null ) : System.Threading.Tasks.Task
user User
channel Channel
replyChannel Channel
return System.Threading.Tasks.Task