C# Class Discord.Commands.CommandService

Inheritance: IService
Afficher le fichier Open project: RogueException/Discord.Net Class Usage Examples

Private Properties

Свойство Type Description
AddCommand void
IService void
OnCommand void
OnCommandError void
ShowCommandHelp System.Threading.Tasks.Task
ShowCommandHelpInternal void

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CommandService ( ) : System
Résultat System

CommandService() public méthode

public CommandService ( Discord.Commands.CommandServiceConfig config ) : System
config Discord.Commands.CommandServiceConfig
Résultat System

CommandService() public méthode

public CommandService ( Discord.Commands.CommandServiceConfigBuilder builder ) : System
builder Discord.Commands.CommandServiceConfigBuilder
Résultat System

CreateCommand() public méthode

public CreateCommand ( string cmd ) : Discord.Commands.CommandBuilder
cmd string
Résultat Discord.Commands.CommandBuilder

CreateGroup() public méthode

public CreateGroup ( string cmd, Action config = null ) : void
cmd string
config Action
Résultat void

ShowCommandHelp() public méthode

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
Résultat System.Threading.Tasks.Task

ShowGeneralHelp() public méthode

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