Expand description
Constants, error types, and functions for validating Message
fields.
Structs§
- Message
Validation Error - A message is not valid.
Enums§
- Message
Validation Error Type - Type of
MessageValidationError
that occurred.
Constants§
- ATTACHMENT_
DESCIPTION_ LENGTH_ MAX - Maximum length of an attachment’s description.
- EMBED_
COUNT_ LIMIT - Maximum number of embeds that a message may have.
- MESSAGE_
CONTENT_ LENGTH_ MAX - Maximum length of message content.
- STICKER_
MAX - Maximum amount of stickers.
Functions§
- attachment
- Ensure an attachment is correct.
- attachment_
description - Ensure an attachment’s description is correct.
- attachment_
filename - Ensure an attachment’s description is correct.
- components
- Ensure a list of components is correct.
- content
- Ensure a message’s content is correct.
- embeds
- Ensure a list of embeds is correct.
- sticker_
ids - Ensure that the amount of stickers in a message is correct.