diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-01-15 06:37:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 06:37:35 +0000 |
commit | 462f801af20562f151cd7ad7fa70aa65695b3e22 (patch) | |
tree | ec5ab7509bc9478ac82715fe9e74381bbfc4a9df /discord/guild.cpp | |
parent | f51ab48009e7fcfafee1d09800764fcbd5d36bf5 (diff) | |
download | abaddon-portaudio-462f801af20562f151cd7ad7fa70aa65695b3e22.tar.gz abaddon-portaudio-462f801af20562f151cd7ad7fa70aa65695b3e22.zip |
Guild settings 1 (#19)
* start guild settings window, tweak style
Diffstat (limited to 'discord/guild.cpp')
-rw-r--r-- | discord/guild.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/discord/guild.cpp b/discord/guild.cpp index 40762ad..8b8a5c2 100644 --- a/discord/guild.cpp +++ b/discord/guild.cpp @@ -118,6 +118,13 @@ void GuildData::update_from_json(const nlohmann::json &j) { JS_RD("approximate_presence_count", ApproximatePresenceCount); } +bool GuildData::HasFeature(const std::string &search_feature) { + for (const auto &feature : Features) + if (search_feature == feature) + return true; + return false; +} + bool GuildData::HasIcon() const { return Icon != ""; } |