dpp::message_search_params
message.h
std::vector< std::string > std::vector<std::string> dpp::message_search_params::attachment_extension attachment_extension dpp::message_search_params::attachment_extension

Filter messages by attachment extension (max 100).

std::vector< std::string > std::vector<std::string> dpp::message_search_params::attachment_filename attachment_filename dpp::message_search_params::attachment_filename

Filter messages by attachment filename (max 100).

std::vector< snowflake > std::vector<snowflake> dpp::message_search_params::author_id author_id dpp::message_search_params::author_id

Filter by author IDs (max 100).

std::vector< std::string > std::vector<std::string> dpp::message_search_params::author_type author_type dpp::message_search_params::author_type

Filter by author type (user, bot, webhook; prefix with - to negate).

std::vector< snowflake > std::vector<snowflake> dpp::message_search_params::channel_id channel_id dpp::message_search_params::channel_id

Filter by channel IDs (max 500).

std::string std::string dpp::message_search_params::content content dpp::message_search_params::content

Filter messages by content (max 1024 characters).

std::vector< std::string > std::vector<std::string> dpp::message_search_params::embed_provider embed_provider dpp::message_search_params::embed_provider

Filter messages by embed provider (case-sensitive, max 100).

std::vector< std::string > std::vector<std::string> dpp::message_search_params::embed_type embed_type dpp::message_search_params::embed_type

Filter messages by embed type.

std::vector< message_search_has > std::vector<message_search_has> dpp::message_search_params::has has dpp::message_search_params::has

Filter by presence of element types.

std::optional< bool > std::optional<bool> dpp::message_search_params::include_nsfw include_nsfw dpp::message_search_params::include_nsfw

Whether to include results from age-restricted channels (default false).

std::optional< uint32_t > std::optional<uint32_t> dpp::message_search_params::limit limit dpp::message_search_params::limit

Max number of messages to return (1-25, default 25).

std::vector< std::string > std::vector<std::string> dpp::message_search_params::link_hostname link_hostname dpp::message_search_params::link_hostname

Filter messages by link hostname (max 100).

snowflake snowflake dpp::message_search_params::max_id max_id dpp::message_search_params::max_id

Get messages before this message ID.

std::optional< bool > std::optional<bool> dpp::message_search_params::mention_everyone mention_everyone dpp::message_search_params::mention_everyone

Filter by @everyone mention presence.

std::vector< snowflake > std::vector<snowflake> dpp::message_search_params::mentions mentions dpp::message_search_params::mentions

Filter messages that mention these users (max 100).

std::vector< snowflake > std::vector<snowflake> dpp::message_search_params::mentions_role_id mentions_role_id dpp::message_search_params::mentions_role_id

Filter messages that mention these roles (max 100).

snowflake snowflake dpp::message_search_params::min_id min_id dpp::message_search_params::min_id

Get messages after this message ID.

std::optional< uint32_t > std::optional<uint32_t> dpp::message_search_params::offset offset dpp::message_search_params::offset

Pagination offset (max 9975).

std::optional< bool > std::optional<bool> dpp::message_search_params::pinned pinned dpp::message_search_params::pinned

Filter messages by whether they are pinned.

std::vector< snowflake > std::vector<snowflake> dpp::message_search_params::replied_to_message_id replied_to_message_id dpp::message_search_params::replied_to_message_id

Filter messages that reply to these messages (max 100).

std::vector< snowflake > std::vector<snowflake> dpp::message_search_params::replied_to_user_id replied_to_user_id dpp::message_search_params::replied_to_user_id

Filter messages that reply to these users (max 100).

std::optional< uint32_t > std::optional<uint32_t> dpp::message_search_params::slop slop dpp::message_search_params::slop

Max number of words to skip between matching tokens (max 100, default 2).

std::optional< message_search_sort > std::optional<message_search_sort> dpp::message_search_params::sort_by sort_by dpp::message_search_params::sort_by

Sorting algorithm to use (default: sort_timestamp).

std::optional< message_search_order > std::optional<message_search_order> dpp::message_search_params::sort_order sort_order dpp::message_search_params::sort_order

Direction to sort (default: sort_desc).

std::string std::string dpp::message_search_params::build_url_params () const build_url_params dpp::message_search_params::build_url_params

Build the query string for the REST request.

URL query string starting with '?'

Parameters for searching messages within a guild.

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

T
dpp::message_search_params
content
author_id
channel_id
mentions
mentions_role_id
replied_to_message_id
replied_to_user_id
attachment_extension
attachment_filename
author_type
embed_provider
embed_type
link_hostname
has
max_id
min_id
include_nsfw
mention_everyone
pinned
limit
offset
slop
sort_by
sort_order
dpp::snowflake
value
message_search_has
std::basic_string< Char >
optional< bool >
optional< message_search_order >
optional< message_search_sort >
optional< uint32_t >
std::string
std::vector< T >
elements
std::vector< dpp::snowflake >
elements
< dpp::snowflake >
std::vector< message_search_has >
elements
< message_search_has >
std::vector< std::string >
elements
< std::string >
uint64_t
- dpp::message_search_params
  attachment_extension
- dpp::message_search_params
  attachment_filename
- dpp::message_search_params
  author_id
- dpp::message_search_params
  author_type
- dpp::message_search_params
  build_url_params
- dpp::message_search_params
  channel_id
- dpp::message_search_params
  content
- dpp::message_search_params
  embed_provider
- dpp::message_search_params
  embed_type
- dpp::message_search_params
  has
- dpp::message_search_params
  include_nsfw
- dpp::message_search_params
  limit
- dpp::message_search_params
  link_hostname
- dpp::message_search_params
  max_id
- dpp::message_search_params
  mention_everyone
- dpp::message_search_params
  mentions
- dpp::message_search_params
  mentions_role_id
- dpp::message_search_params
  min_id
- dpp::message_search_params
  offset
- dpp::message_search_params
  pinned
- dpp::message_search_params
  replied_to_message_id
- dpp::message_search_params
  replied_to_user_id
- dpp::message_search_params
  slop
- dpp::message_search_params
  sort_by
- dpp::message_search_params
  sort_order