Skip to content

Commit

Permalink
[feat] alter set_allowed_mentions
Browse files Browse the repository at this point in the history
This allows the developer to use only one parameter if they only require to change the first parameter and leave the others as default. Altered comments.
  • Loading branch information
folospior committed Feb 12, 2024
1 parent d3e6d1e commit e824c7a
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit e824c7a

Please sign in to comment.