Optional
extension Optional: CommandArgumentConvertible where Wrapped: CommandArgumentConvertible
extension Optional: ConsumingCommandArgumentConvertible, AnyConsuming where Wrapped: ConsumingCommandArgumentConvertible
-
Declaration
Swift
public static var typedName: String { get }
-
Declaration
Swift
public typealias ResolvedArgument = Wrapped.ResolvedArgument?
-
Declaration
Swift
public static func resolveArgument(_ argument: String, on event: CommandEvent) throws -> Wrapped.ResolvedArgument?
-
Declaration
Swift
public static func resolveArgument(_ argument: String?, arg: CommandArgument, on event: CommandEvent) throws -> ResolvedArgument