C# 클래스 Discord.Commands.CommandService

상속: IService
파일 보기 프로젝트 열기: RogueException/Discord.Net 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddCommand void
IService void
OnCommand void
OnCommandError void
ShowCommandHelp System.Threading.Tasks.Task
ShowCommandHelpInternal void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CommandService() 공개 메소드

public CommandService ( ) : System
리턴 System

CommandService() 공개 메소드

public CommandService ( Discord.Commands.CommandServiceConfig config ) : System
config Discord.Commands.CommandServiceConfig
리턴 System

CommandService() 공개 메소드

public CommandService ( Discord.Commands.CommandServiceConfigBuilder builder ) : System
builder Discord.Commands.CommandServiceConfigBuilder
리턴 System

CreateCommand() 공개 메소드

public CreateCommand ( string cmd ) : Discord.Commands.CommandBuilder
cmd string
리턴 Discord.Commands.CommandBuilder

CreateGroup() 공개 메소드

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

ShowCommandHelp() 공개 메소드

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
리턴 System.Threading.Tasks.Task

ShowGeneralHelp() 공개 메소드

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