RESTGetAPIGuildMessagesSearchQuery
https://discord.com/developers/docs/resources/message#search-guild-messages
Signature
export interface RESTGetAPIGuildMessagesSearchQueryProperties
24Methods
0No methods.
Properties
content?: string;Filter messages by content (max 1024 characters)
channel_id?: Snowflake[];Filter messages by these channels (max 500)
author_id?: Snowflake[];Filter messages by these authors (max 100)
author_type?: GuildSearchNegatable<GuildSearchAuthorType>[];Filter by author type (prefix with `-` to negate)
mentions?: Snowflake[];Filter messages that mention these users (max 100)
mentions_role_id?: Snowflake[];Filter messages that mention these roles (max 100)
mention_everyone?: boolean;Filter messages that do or do not mention
replied_to_user_id?: Snowflake[];Filter messages that reply to these users (max 100)
replied_to_message_id?: Snowflake[];Filter messages that reply to these messages (max 100)
pinned?: boolean;Filter messages by whether they are or are not pinned
has?: GuildSearchNegatable<GuildSearchHasType>[];Filter by content type (prefix with `-` to negate)
embed_type?: GuildSearchEmbedType[];Filter messages by embed type
embed_provider?: ('Tenor' | ({} & string))[];Filter messages by embed provider (case-sensitive, e.g. `Tenor`) (max 256 characters, max 100)
link_hostname?: string[];Filter messages by link hostname (e.g. `discordapp.com`) (max 256 characters, max 100)
attachment_filename?: string[];Filter messages by attachment filename (max 1024 characters, max 100)
attachment_extension?: string[];Filter messages by attachment extension (e.g. `txt`) (max 256 characters, max 100)
slop?: number;Max number of words to skip between matching tokens (max 100)
sort_by?: GuildSearchSortBy;The sorting algorithm to use
sort_order?: GuildSearchSortOrder;The sort order (ignored with relevance sorting)
limit?: number;Max number of messages to return (1-25)
offset?: number;Number to offset the returned messages by (max 9975)
max_id?: Snowflake;Get messages before this message ID
min_id?: Snowflake;Get messages after this message ID
include_nsfw?: boolean;Whether to include results from age-restricted channels