support animated guild icon

This commit is contained in:
ouwou
2020-12-21 19:08:44 -05:00
parent 486d184c83
commit d8ff05ddf8
8 changed files with 77 additions and 11 deletions

View File

@@ -68,6 +68,7 @@ struct Guild {
void update_from_json(const nlohmann::json &j);
bool HasIcon() const;
bool HasAnimatedIcon() const;
std::string GetIconURL(std::string ext = "png", std::string size = "32") const;
std::vector<Snowflake> GetSortedChannels(Snowflake ignore = Snowflake::Invalid) const;
};