1
0
Fork 0
mirror of https://gitlab.com/niansa/dpplogger.git synced 2025-03-06 20:48:29 +01:00

Fixed channel deletion

This commit is contained in:
niansa 2023-01-24 21:06:45 +01:00
parent ec3b896912
commit 6696d509e5

View file

@ -521,9 +521,9 @@ protected:
insertChannelUpdate(data, false);
if (cache.store(data).changed) cache.store(std::move(data));
} else if (intent == "CHANNEL_DELETE") [[unlikely]] {
const auto& guild_id = data["guild_id"];
if (guild_id.isString()) {
insertChannelDelete(guild_id);
const auto& id = data["id"];
if (id.isString()) {
insertChannelDelete(id);
}
}
else if (intent == "GUILD_MEMBER_ADD" || intent == "GUILD_MEMBER_UDATE") [[unlikely]] {