BinaryFloatingPoint
extension BinaryFloatingPoint
-
Attempts to resolve an argument from the provided string.
Throws
CommandError.UnableToConvertArgument
whenResolvedArgument
can not be created fromargument
CommandError.ArgumentNotFound
when no argument is foundDeclaration
Swift
public static func resolveArgument(_ argument: String, on event: CommandEvent) throws -> Self
Parameters
argument
String taken from the message body.
event
The
CommandEvent
this argument should be resolved for.Return Value
The resolved argument