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:
parent
ec3b896912
commit
6696d509e5
1 changed files with 3 additions and 3 deletions
6
main.cpp
6
main.cpp
|
@ -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]] {
|
||||
|
|
Loading…
Add table
Reference in a new issue