Guild settings 1 (#19)

* start guild settings window, tweak style
This commit is contained in:
ouwou
2021-01-15 06:37:35 +00:00
committed by GitHub
parent f51ab48009
commit 462f801af2
27 changed files with 442 additions and 4 deletions

View File

@@ -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 != "";
}