summaryrefslogtreecommitdiff
path: root/src/discord
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord')
-rw-r--r--src/discord/guild.cpp2
-rw-r--r--src/discord/guild.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/discord/guild.cpp b/src/discord/guild.cpp
index 3995293..bb99044 100644
--- a/src/discord/guild.cpp
+++ b/src/discord/guild.cpp
@@ -119,7 +119,7 @@ void GuildData::update_from_json(const nlohmann::json &j) {
JS_RD("approximate_presence_count", ApproximatePresenceCount);
}
-bool GuildData::HasFeature(const std::string &search_feature) {
+bool GuildData::HasFeature(const std::string &search_feature) const {
if (!Features.has_value()) return false;
for (const auto &feature : *Features)
if (search_feature == feature)
diff --git a/src/discord/guild.hpp b/src/discord/guild.hpp
index 3370fa8..152e250 100644
--- a/src/discord/guild.hpp
+++ b/src/discord/guild.hpp
@@ -91,7 +91,7 @@ struct GuildData {
friend void from_json(const nlohmann::json &j, GuildData &m);
void update_from_json(const nlohmann::json &j);
- bool HasFeature(const std::string &feature);
+ bool HasFeature(const std::string &feature) const;
bool HasIcon() const;
bool HasAnimatedIcon() const;
std::string GetIconURL(const std::string &ext = "png", const std::string &size = "32") const;