From 7a5127173ef1fa4e4e19fd13e67a42930fbb0608 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Mon, 2 Oct 2023 14:35:09 +0000 Subject: [PATCH] fix: an oof --- src/dpp/guild.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp index 714c20c93a..20bd93a7d3 100644 --- a/src/dpp/guild.cpp +++ b/src/dpp/guild.cpp @@ -239,7 +239,7 @@ std::string guild_member::build_json(bool with_id) const { } } - if (gm_nickname_action) { + if (this->flags & gm_nickname_action) { if (!this->nickname.empty()) { j["nick"] = this->nickname; } else { @@ -247,7 +247,7 @@ std::string guild_member::build_json(bool with_id) const { } } - if (gm_roles_action) { + if (this->flags & gm_roles_action) { j["roles"] = {}; for (const auto & role : this->roles) { j["roles"].push_back(std::to_string(role));