From 796723900484707844de49f208aae0d6c0144f43 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Mon, 2 Oct 2023 14:02:36 +0000 Subject: [PATCH] fix: bugfix and tweak --- src/dpp/guild.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp index 6d77c5cd9d..7ff26a14ba 100644 --- a/src/dpp/guild.cpp +++ b/src/dpp/guild.cpp @@ -241,7 +241,7 @@ std::string guild_member::build_json(bool with_id) const { } } - if (this->flags & gm_nickname_action) { + if (gm_nickname_action) { if (!this->nickname.empty()) { j["nick"] = this->nickname; } else { @@ -249,10 +249,10 @@ std::string guild_member::build_json(bool with_id) const { } } - if (this->flags & gm_roles_action) { + if (gm_roles_action) { if (!this->roles.empty()) { j["roles"] = {}; - for (auto & role : this->roles) { + for (const auto & role : this->roles) { j["roles"].push_back(std::to_string(role)); } } else {