C# 클래스 Nekobot.Commands.CommandGroupBuilder

파일 보기 프로젝트 열기: Kusoneko/Nekobot 1 사용 예제들

공개 메소드들

메소드 설명
AddCheck ( Func checkFunc, string errorMsg = null ) : void
AddCheck ( IPermissionChecker checker ) : void
Category ( string category ) : CommandGroupBuilder
CreateCommand ( ) : CommandBuilder
CreateCommand ( string cmd ) : CommandBuilder
CreateGroup ( string cmd, Action config ) : CommandGroupBuilder
DefaultMusicFlag ( bool isMusicRelated ) : void
DefaultNsfwFlag ( bool isNsfw ) : void

비공개 메소드들

메소드 설명
CommandGroupBuilder ( Nekobot.Commands.CommandService service, string prefix = "", string category = null, IEnumerable initialChecks = null, bool defaultNsfwFlag = false, bool defaultMusicFlag = false ) : Discord

메소드 상세

AddCheck() 공개 메소드

public AddCheck ( Func checkFunc, string errorMsg = null ) : void
checkFunc Func
errorMsg string
리턴 void

AddCheck() 공개 메소드

public AddCheck ( IPermissionChecker checker ) : void
checker IPermissionChecker
리턴 void

Category() 공개 메소드

public Category ( string category ) : CommandGroupBuilder
category string
리턴 CommandGroupBuilder

CreateCommand() 공개 메소드

public CreateCommand ( ) : CommandBuilder
리턴 CommandBuilder

CreateCommand() 공개 메소드

public CreateCommand ( string cmd ) : CommandBuilder
cmd string
리턴 CommandBuilder

CreateGroup() 공개 메소드

public CreateGroup ( string cmd, Action config ) : CommandGroupBuilder
cmd string
config Action
리턴 CommandGroupBuilder

DefaultMusicFlag() 공개 메소드

public DefaultMusicFlag ( bool isMusicRelated ) : void
isMusicRelated bool
리턴 void

DefaultNsfwFlag() 공개 메소드

public DefaultNsfwFlag ( bool isNsfw ) : void
isNsfw bool
리턴 void