FixedWidthInteger

extension FixedWidthInteger
  • Attempts to resolve an argument from the provided string.

    Throws

    CommandError.UnableToConvertArgument when ResolvedArgument can not be created from argument CommandError.ArgumentNotFound when no argument is found

    Declaration

    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