-
Closure type this command will execute.
Declaration
Swift
associatedtype Execute
-
Closure to execute when command is invoked.
Declaration
Swift
var closure: Execute { get }
-
Used for FunctionBuilder Copy On Write.
Declaration
Swift
func copyWith(name: String, group: String?, alias: [String], hookWhitelist: [HookID], permissionChecks: [CommandPermissionChecker], closure: Execute) -> Self
-
readableArguments
Extension methodHuman readable string of arguments required for this command.
command.readableArguments // "<a:Int> <b:Int> [c:String]"
Declaration
Swift
var readableArguments: String? { get }
-
trigger
Extension methodTrigger of the command.
Synonym for
ExecutableCommand.name
Declaration
Swift
var trigger: String { get }
-
help
Extension methodHuman readable help string explaining command usage.
Declaration
Swift
var help: String { get }
-
fullTrigger
Extension methodDeclaration
Swift
var fullTrigger: String { get }
-
onHook(_:
Extension method) Adds a hook to the whitelist.
See
hookWhitelist
Declaration
Swift
func onHook(_ hook: HookID) -> Self
Parameters
hook
HookID to whitelist.
-
alias(_:
Extension method) Adds an alias to this command.
See
alias
Declaration
Swift
func alias(_ string: String) -> Self
Parameters
string
Alias to add.
-
check(_:
Extension method) Adds a check to this command.
See
permissionChecks
Declaration
Swift
func check(_ c: CommandPermissionChecker) -> Self
Parameters
c
Check to add.
-
group(_:
Extension method) Sets the group of this command.
See
group
Declaration
Swift
func group(_ group: String) -> Self
Parameters
group
Group to add.
-
execute(_:
Extension method) -
executables()
Extension methodDeclaration
Swift
func executables() -> [_ExecutableCommand]