-
Object pointing command aliases to their respected full name
Declaration
Swift
public var commandAliases = [String: (casePreserved: String, target: String)]() -
Object pointing command names to their Command Object
Declaration
Swift
public var commands = [String: Commandable]() -
Shield Options structure
Declaration
Swift
public var shieldOptions: ShieldOptions
-
Creates a Shield class to use commands with
Declaration
Swift
public init( token: String, with swordOptions: SwordOptions = SwordOptions(), and shieldOptions: ShieldOptions = ShieldOptions() )
-
Registers a command
Declaration
Swift
public func register(_ command: Commandable) -
Registers a command
Declaration
Swift
public func register( _ commandName: String, with options: CommandOptions = CommandOptions(), _ function: @escaping (Message, [String]) -> () ) -
Registers a command
Declaration
Swift
public func register( _ commandName: String, with options: CommandOptions = CommandOptions(), message: String ) -
Unregisters a command
Declaration
Swift
public func unregister(_ commandName: String)
View on GitHub
Shield Class Reference