RESTGetAPIGuildMessagesSearchQuery

https://discord.com/developers/docs/resources/message#search-guild-messages

Signature

export interface RESTGetAPIGuildMessagesSearchQuery

Properties

content?: string;

Filter messages by content (max 1024 characters)

mention_everyone?: boolean;

Filter messages that do or do not mention

@everyone
pinned?: boolean;

Filter messages by whether they are or are not pinned

embed_provider?: ('Tenor' | ({} & string))[];

Filter messages by embed provider (case-sensitive, e.g. `Tenor`) (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)

@default2
limit?: number;

Max number of messages to return (1-25)

@default25
offset?: number;

Number to offset the returned messages by (max 9975)

include_nsfw?: boolean;

Whether to include results from age-restricted channels

@defaultfalse