Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] alter set_allowed_mentions #1081

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions include/dpp/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -2074,15 +2074,15 @@ struct DPP_EXPORT message : public managed, json_interface<message> {
/**
* @brief Set the allowed mentions object for pings on the message
*
* @param _parse_users whether or not to parse users in the message content or embeds
* @param _parse_roles whether or not to parse roles in the message content or embeds
* @param _parse_everyone whether or not to parse everyone/here in the message content or embeds
* @param _replied_user if set to true and this is a reply, then ping the user we reply to
* @param users list of user ids to allow pings for
* @param roles list of role ids to allow pings for
* @param _parse_users whether or not to parse users in the message content or embeds, default false
* @param _parse_roles whether or not to parse roles in the message content or embeds, default false
* @param _parse_everyone whether or not to parse everyone/here in the message content or embeds, default false
* @param _replied_user if set to true and this is a reply, then ping the user we reply to, default false
* @param users list of user ids to allow pings for, default an empty vector
* @param roles list of role ids to allow pings for, default an empty vector
* @return message& reference to self
*/
message& set_allowed_mentions(bool _parse_users, bool _parse_roles, bool _parse_everyone, bool _replied_user, const std::vector<snowflake> &users, const std::vector<snowflake> &roles);
message& set_allowed_mentions(bool _parse_users = false, bool _parse_roles = false, bool _parse_everyone = false, bool _replied_user = false, const std::vector<snowflake> &users = {}, const std::vector<snowflake> &roles = {});

using json_interface<message>::fill_from_json;
using json_interface<message>::to_json;
Expand Down
Loading