From 57e95c8969394915c1796f48108443b0a8b7c28b Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 6 Apr 2022 21:07:45 -0400 Subject: replace file chooser with native also remove clipboard since it was just a workaround and i dont want to maintain it --- src/discord/guild.cpp | 2 +- src/discord/guild.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/discord') 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; -- cgit v1.2.3