Expand description
Constants, error types, and functions for validating the query parameters of the Search Guild Messages HTTP request.
All constants are based on the values provided in the documentation for the request located at Discord Docs/Search Guild Messages.
Structs§
- Search
Guild Messages Error - A message is not valid.
Enums§
- Search
Guild Messages Error Type - Type of
SearchGuildMessagesErrorthat occurred.
Constants§
- ATTACHMENT_
EXTENSION_ ENTRY_ MAX - Maximum length of an individual attachment extension entry.
- ATTACHMENT_
EXTENSION_ LIMIT - Maximum number of attachment extensions to filter by.
- ATTACHMENT_
FILENAME_ ENTRY_ MAX - Maximum length of an individual attachment filename entry.
- ATTACHMENT_
FILENAME_ LIMIT - Maximum number of attachment filenames to filter by.
- AUTHOR_
ID_ LIMIT - Maximum number of author IDs to filter by.
- CHANNEL_
ID_ LIMIT - Maximum number of channel IDs to filter by.
- CONTENT_
LENGTH_ MAX - Maximum length of content.
- EMBED_
PROVIDER_ ENTRY_ MAX - Maximum length of an individual embed provider entry.
- EMBED_
PROVIDER_ LIMIT - Maximum number of embed providers to filter by.
- LIMIT_
MAX - Maximum amount of messages to get.
- LIMIT_
MIN - Minimum amount of messages to get.
- LINK_
HOSTNAME_ ENTRY_ MAX - Maximum length of an individual link hostname entry.
- LINK_
HOSTNAME_ LIMIT - Maximum number of link hostnames to filter by.
- MENTIONS_
LIMIT - Maximum number of user mentions to filter by.
- MENTIONS_
ROLE_ ID_ LIMIT - Maximum number of role mentions to filter by.
- OFFSET_
MAX - Maximum offset of messages.
- REPLIED_
TO_ MESSAGE_ ID_ LIMIT - Maximum number of replied messages to filter by.
- REPLIED_
TO_ USER_ ID_ LIMIT - Maximum number of replied users to filter by.
- SLOP_
MAX - Maximum amount of slop.
Functions§
- attachment_
extension - Ensure a list of attachment extensions is correct.
- attachment_
filename - Ensure a list of attachment filenames is correct.
- author_
id - Ensure that the amount of author IDs is correct.
- channel_
id - Ensure that the amount of channel IDs is correct.
- content
- Ensure the content is correct.
- embed_
provider - Ensure a list of embed providers is correct.
- limit
- Ensure that the limit is correct.
- link_
hostname - Ensure a list of link hostnames is correct.
- mentions
- Ensure that the amount of mentions is correct.
- mentions_
role_ id - Ensure that the amount of mention roles is correct.
- offset
- Ensure that the offset is correct.
- replied_
to_ message_ id - Ensure that the amount of replied to message IDs is correct.
- replied_
to_ user_ id - Ensure that the amount of replied to user IDs is correct.
- slop
- Ensure that the slop is correct.