Migrated the global.cpp listener

This commit is contained in:
Mathias Wagner 2023-11-07 10:05:40 +01:00
parent 2f0b360a91
commit f5239ce245

View File

@ -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);