diff --git a/src/dpp/events/guild_emojis_update.cpp b/src/dpp/events/guild_emojis_update.cpp index 52c8354577..e8e171a1cc 100644 --- a/src/dpp/events/guild_emojis_update.cpp +++ b/src/dpp/events/guild_emojis_update.cpp @@ -67,7 +67,7 @@ void guild_emojis_update::handle(discord_client* client, json &j, const std::str } if (!client->creator->on_guild_emojis_update.empty()) { dpp::guild_emojis_update_t geu(client, raw); - geu.emojis = g->emojis; + geu.emojis = g ? g->emojis : nullptr; geu.updating_guild = g; client->creator->on_guild_emojis_update.call(geu); }