diff --git a/src/listeners/global.cpp b/src/listeners/global.cpp index 713fb97..6da8aff 100644 --- a/src/listeners/global.cpp +++ b/src/listeners/global.cpp @@ -16,7 +16,7 @@ void global::send(const std::string& url, dpp::cluster &bot, const dpp::message_ msg.add_field("", "[Support Server](https://discord.gg/dAe7BPsHZc) ║ [Bot Invite](https://discord.com/api/oauth2/authorize?client_id=772513556116930580&permissions=321536&scope=bot)", false); - msg.set_thumbnail("https://cdn.discordapp.com/icons/" + std::to_string(g->id) + "/" + g->icon.to_string() + ".png"); + msg.set_thumbnail("https://cdn.discordapp.com/icons/" + std::to_string(g->id) + "/" + g->icon.as_iconhash().to_string() + ".png"); msg.set_timestamp(time(0)); msg.set_description(event.msg.content);