Module twilight_validate::message
source · Expand description
Constants, error types, and functions for validating Message
fields.
Structs
- A message is not valid.
Enums
- Type of
MessageValidationError
that occurred.
Constants
- Maximum length of an attachment’s description.
- Maximum number of embeds that a message may have.
- Maximum length of message content.
- Maximum amount of stickers.
Functions
- Ensure an attachment is correct.
- Ensure an attachment’s description is correct.
- Ensure an attachment’s description is correct.
- Ensure a list of components is correct.
- Ensure a message’s content is correct.
- Ensure a list of embeds is correct.
- Ensure that the amount of stickers in a message is correct.