Expand description
Everything related to parsing command arguments from a text message
Structs§
- Code
Block - A command parameter type for Discord code blocks
- Code
Block Error - Error thrown when parsing a malformed
CodeBlock(CodeBlock::pop_from) - Invalid
Bool - Error thrown when the user enters a string that is not recognized as a boolean
- Invalid
Channel Id - Error thrown when the user enters a string that cannot be parsed correctly.
- Invalid
Choice - Error thrown when the user enters a string that is not recognized by a ChoiceParameter-derived enum
- Invalid
Role Id - Error thrown when the user enters a string that cannot be parsed correctly.
- Invalid
User Id - Error thrown when the user enters a string that cannot be parsed correctly.
- KeyValue
Args - A command parameter type for key-value args
- Missing
Attachment - Error thrown in prefix invocation when there’s too few attachments
- TooFew
Arguments - Error thrown if user passes too few arguments to a command
- TooMany
Arguments - Error thrown if user passes too many arguments to a command
Traits§
- PopArgument
- Parse a value out of a string by popping off the front of the string. Discord message context is available for parsing, and IO may be done as part of the parsing.