mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
handle USER_GUILD_SETTINGS_UPDATE for notifications
This commit is contained in:
1 parent
3889991e16
commit
e3f6a1dcbd
3 files changed
+15
-5
No files matched your search
@@ -210,7 +210,15 @@ std::optional<UserGuildSettingsChannelOverride> UserGuildSettingsEntry::GetOverr
|
||||
void from_json(const nlohmann::json &j, UserGuildSettingsData &m) {
|
||||
JS_D("version", m.Version);
|
||||
JS_D("partial", m.IsPartial);
|
||||
JS_D("entries", m.Entries);
|
||||
|
||||
{
|
||||
std::vector<UserGuildSettingsEntry> entries;
|
||||
JS_D("entries", entries);
|
||||
|
||||
for (const auto &entry : entries) {
|
||||
m.Entries[entry.GuildID] = entry;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void from_json(const nlohmann::json &j, ReadyEventData &m) {
|
||||
|
||||
Reference in new issue
Block a user