-
Declaration
Swift
public let name: String -
Declaration
Swift
public let group: String? -
Declaration
Swift
public let alias: [String] -
Declaration
Swift
public let hookWhitelist: [HookID] -
Declaration
Swift
public let permissionChecks: [CommandPermissionChecker] -
Declaration
Swift
public let closure: (CommandEvent) -> AnyFuture -
Declaration
Swift
public func invoke(on event: CommandEvent) -> EventLoopFuture<Void> -
Declaration
Swift
public func copyWith(name: String, group: String?, alias: [String], hookWhitelist: [HookID], permissionChecks: [CommandPermissionChecker], closure: @escaping Execute) -> Command -
Create a new command.
Declaration
Swift
public init(_ name: String)Parameters
nameName and trigger of the command.
-
Declaration
Swift
public func validate() throws -
Add an argument to this command
Command("echo") .arg(String.Consuming.self, named: "content")Declaration
Swift
public func arg<A>(_ t: A.Type, named name: String) -> OneArgCommand<A> where A : CommandArgumentConvertibleParameters
tType of the argument.
nameName of the argument.
View on GitHub
Command Structure Reference