diff --git a/src/managers/ClientUserSettingManager.js b/src/managers/ClientUserSettingManager.js index 6a1ae99..d40de54 100644 --- a/src/managers/ClientUserSettingManager.js +++ b/src/managers/ClientUserSettingManager.js @@ -34,6 +34,7 @@ class ClientUserSettingManager extends BaseManager { */ _patch(data = {}) { this.#rawSetting = Object.assign(this.#rawSetting, data); + this.client.emit('debug', `[SETTING > ClientUser] Sync setting`); if ('locale' in data) { /** * The user's chosen language option diff --git a/src/managers/GuildSettingManager.js b/src/managers/GuildSettingManager.js index 6e37fa4..7ab70db 100644 --- a/src/managers/GuildSettingManager.js +++ b/src/managers/GuildSettingManager.js @@ -7,7 +7,7 @@ const BaseManager = require('./BaseManager'); * @see {@link https://luna.gitlab.io/discord-unofficial-docs/user_settings.html} */ class GuildSettingManager extends BaseManager { - #raw = {}; + #rawSetting = {}; constructor(guild) { super(guild.client); /** @@ -22,7 +22,7 @@ class GuildSettingManager extends BaseManager { * @type {Object} */ get raw() { - return this.#raw; + return this.#rawSetting; } /** @@ -40,7 +40,8 @@ class GuildSettingManager extends BaseManager { * @param {Object} data Raw Data to patch */ _patch(data = {}) { - this.#raw = Object.assign(this.#raw, data); + this.#rawSetting = Object.assign(this.#rawSetting, data); + this.client.emit('debug', `[SETTING > Guild ${this.guildId}] Sync setting`); if ('suppress_everyone' in data) { /** * Notification setting > Suppress `@everyone` and `@here`