CommandError
public enum CommandError : Error
Errors thrown from command invocations or pre-checking.
-
User executing this command does not have the required permissions.
Thrown from
CommandPermissionChecker
Declaration
Swift
case InvalidPermissions
-
Development error. Consuming arguments should always appear last in the argument chain.
Thrown at
SwiftHooks.register(_ plugin:)
time.Declaration
Swift
case ConsumingArgumentIsNotLast(String)
-
Invalid argument passed on command invocation.
Thrown from argument decoding.
Declaration
Swift
case UnableToConvertArgument(String, String)
-
Invalid or too few arguments passed on command invocation.
Thrown from argument decoding
Declaration
Swift
case ArgumentNotFound(String)
-
Retrieve the localized description for this error.
Declaration
Swift
public var localizedDescription: String { get }