animated avatars on hover

This commit is contained in:
ouwou committed 2020-12-22 02:24:09 -05:00
1 parent 8a2f13795d
commit 81d3ab2f86
4 files changed
+80 -21

No files matched your search

+4
View File
@@ -5,6 +5,10 @@ bool User::HasAvatar() const {
return Avatar.size() > 0;
}
bool User::HasAnimatedAvatar() const {
return Avatar.size() > 0 && Avatar[0] == 'a' && Avatar[1] == '_';
}
std::string User::GetAvatarURL(std::string ext, std::string size) const {
return "https://cdn.discordapp.com/avatars/" + std::to_string(ID) + "/" + Avatar + "." + ext + "?size=" + size;
}