Skip to content

Commit

Permalink
remove permissions field from dpp::guild_member
Browse files Browse the repository at this point in the history
  • Loading branch information
MCausc78 committed Jul 17, 2023
1 parent 61ac8d2 commit eb3d933
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions include/dpp/guild.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ class DPP_EXPORT guild_member {
time_t joined_at;
/** Boosting since */
time_t premium_since;
/** total permissions of the member in the channel, including overwrites, returned when in the interaction object */
permission permissions;
/** A set of flags built from the bitmask defined by dpp::guild_member_flags */
uint16_t flags;

Expand Down
2 changes: 0 additions & 2 deletions src/dpp/guild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ guild_member::guild_member() :
communication_disabled_until(0),
joined_at(0),
premium_since(0),
permissions(0),
flags(0)
{
}
Expand Down Expand Up @@ -188,7 +187,6 @@ void from_json(const nlohmann::json& j, guild_member& gm) {
gm.flags |= bool_not_null(&j, "deaf") ? gm_deaf : 0;
gm.flags |= bool_not_null(&j, "mute") ? gm_mute : 0;
gm.flags |= bool_not_null(&j, "pending") ? gm_pending : 0;
gm.permissions = snowflake_not_null(&j, "permissions");
}

std::string guild_member::get_avatar_url(uint16_t size, const image_type format, bool prefer_animated) const {
Expand Down

0 comments on commit eb3d933

Please sign in to comment.