guild icons

This commit is contained in:
ouwou
2020-09-19 18:58:47 -04:00
parent 72d0a0d2a0
commit 83b480742b
4 changed files with 23 additions and 0 deletions

View File

@@ -54,3 +54,7 @@ void from_json(const nlohmann::json &j, Guild &m) {
JS_O("approximate_member_count", m.ApproximateMemberCount);
JS_O("approximate_presence_count", m.ApproximatePresenceCount);
}
std::string Guild::GetIconURL(std::string ext, std::string size) const {
return "https://cdn.discordapp.com/icons/" + std::to_string(ID) + "/" + Icon + "." + ext + "?size=" + size;
}