C# Class Nekobot.Commands.CommandGroupBuilder

Afficher le fichier Open project: Kusoneko/Nekobot Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
CommandGroupBuilder ( Nekobot.Commands.CommandService service, string prefix = "", string category = null, IEnumerable initialChecks = null, bool defaultNsfwFlag = false, bool defaultMusicFlag = false ) : Discord

Method Details

AddCheck() public méthode

public AddCheck ( Func checkFunc, string errorMsg = null ) : void
checkFunc Func
errorMsg string
Résultat void

AddCheck() public méthode

public AddCheck ( IPermissionChecker checker ) : void
checker IPermissionChecker
Résultat void

Category() public méthode

public Category ( string category ) : CommandGroupBuilder
category string
Résultat CommandGroupBuilder

CreateCommand() public méthode

public CreateCommand ( ) : CommandBuilder
Résultat CommandBuilder

CreateCommand() public méthode

public CreateCommand ( string cmd ) : CommandBuilder
cmd string
Résultat CommandBuilder

CreateGroup() public méthode

public CreateGroup ( string cmd, Action config ) : CommandGroupBuilder
cmd string
config Action
Résultat CommandGroupBuilder

DefaultMusicFlag() public méthode

public DefaultMusicFlag ( bool isMusicRelated ) : void
isMusicRelated bool
Résultat void

DefaultNsfwFlag() public méthode

public DefaultNsfwFlag ( bool isNsfw ) : void
isNsfw bool
Résultat void