From a1d4d4ca9cf918beaac03d054d10a5eb7d321f2d Mon Sep 17 00:00:00 2001 From: Miuna <809711+Mishura4@users.noreply.github.com> Date: Fri, 30 Aug 2024 04:18:10 -0400 Subject: [PATCH] fix: fix guild_member::get_avatar_url() (#1230) (#1231) --- src/dpp/guild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpp/guild.cpp b/src/dpp/guild.cpp index 2e0729e7b2..a4040e2a99 100644 --- a/src/dpp/guild.cpp +++ b/src/dpp/guild.cpp @@ -217,7 +217,7 @@ void from_json(const nlohmann::json& j, guild_member& gm) { std::string guild_member::get_avatar_url(uint16_t size, const image_type format, bool prefer_animated) const { if (this->guild_id && this->user_id && !this->avatar.to_string().empty()) { return utility::cdn_endpoint_url_hash({ i_jpg, i_png, i_webp, i_gif }, - "guilds/" + std::to_string(this->guild_id) + "/" + std::to_string(this->user_id), this->avatar.to_string(), + "guilds/" + std::to_string(this->guild_id) + "/users/" + std::to_string(this->user_id) + "/avatars", this->avatar.to_string(), format, size, prefer_animated, has_animated_guild_avatar()); } else { return std::string();