From 78250d866ef70e71968c77f2eeeb8bd66702edc5 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Wed, 18 Jan 2023 17:09:32 +0700 Subject: [PATCH] fix: GuildSettingData#mute_config is null --- src/managers/GuildSettingManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managers/GuildSettingManager.js b/src/managers/GuildSettingManager.js index fa2a51d..bb7e30f 100644 --- a/src/managers/GuildSettingManager.js +++ b/src/managers/GuildSettingManager.js @@ -87,12 +87,12 @@ class GuildSettingManager extends BaseManager { */ this.muted = data.muted; } - if ('mute_config' in data) { + if ('mute_config' in data && data.mute_config !== null) { /** * Mute config (muted = true) * * `muteConfig.endTime`: End time (Date) * * `muteConfig.selectedTimeWindow`: Selected time window (seconds) (number) - * @type {?Date} + * @type {?Object} */ this.muteConfig = { endTime: new Date(data.mute_config.end_time),