Interface
APIMessageSearchRequest
Request body for POST /search/messages (GlobalSearchMessagesRequest).
Properties
| Name | Type | Description |
|---|---|---|
| author_id? | Snowflake[] | |
| author_type? | Array<'user' | 'bot' | 'webhook'> | |
| channel_id? | Snowflake[] | |
| channel_ids? | Snowflake[] | |
| content? | string | |
| contents? | string[] | |
| context_channel_id? | Snowflake | |
| context_guild_id? | Snowflake | |
| cursor? | string[] | |
| exact_phrases? | string[] | |
| exclude_author_id? | Snowflake[] | |
| exclude_author_type? | Array<'user' | 'bot' | 'webhook'> | |
| exclude_channel_id? | Snowflake[] | |
| exclude_has? | string[] | |
| exclude_mentions? | Snowflake[] | |
| has? | string[] | |
| hits_per_page? | number | |
| include_nsfw? | boolean | |
| max_id? | Snowflake | |
| mention_everyone? | boolean | |
| mentions? | Snowflake[] | |
| min_id? | Snowflake | |
| page? | number | |
| pinned? | boolean | |
| scope? | MessageSearchScope | Always current for bot tokens. |
| sort_by? | string | |
| sort_order? | 'asc' | 'desc' |