Skip to main content

Module search_guild_messages

Module search_guild_messages 

Source
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§

SearchGuildMessagesError
A message is not valid.

Enums§

SearchGuildMessagesErrorType
Type of SearchGuildMessagesError that 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.