FixedWidthInteger
extension FixedWidthInteger
-
Attempts to resolve an argument from the provided string.
Throws
CommandError.UnableToConvertArgumentwhenResolvedArgumentcan not be created fromargumentCommandError.ArgumentNotFoundwhen no argument is foundDeclaration
Swift
public static func resolveArgument(_ argument: String, on event: CommandEvent) throws -> SelfParameters
argumentString taken from the message body.
eventThe
CommandEventthis argument should be resolved for.Return Value
The resolved argument
View on GitHub
FixedWidthInteger Extension Reference