From f5239ce24567fae92b446947e3bb28c4d652e4cf Mon Sep 17 00:00:00 2001 From: Mathias Wagner <germannewsmaker@gmail.com> Date: Tue, 7 Nov 2023 10:05:40 +0100 Subject: [PATCH] Migrated the global.cpp listener --- src/listeners/global.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);