From 36216f3f4a2abb358080f78d2dbc65ae4a9748ed Mon Sep 17 00:00:00 2001 From: lts20050703 <87189679+lts20050703@users.noreply.github.com> Date: Fri, 28 Jan 2022 14:02:31 +0700 Subject: [PATCH] communicationDisabledUntil shouldn't be null --- src/transformers/member.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/transformers/member.ts b/src/transformers/member.ts index 0fa6e9a06..2caa39cef 100644 --- a/src/transformers/member.ts +++ b/src/transformers/member.ts @@ -60,7 +60,7 @@ export function transformMember( permissions: payload.permissions ? bot.transformers.snowflake(payload.permissions) : undefined, communicationDisabledUntil: payload.communication_disabled_until ? Date.parse(payload.communication_disabled_until) - : null, + : undefined, }; } @@ -89,6 +89,6 @@ export interface DiscordenoMember { avatar?: bigint; /** The permissions this member has in the guild. Only present on interaction events. */ permissions?: bigint; - /** when the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out */ - communicationDisabledUntil?: number | null; + /** when the user's timeout will expire and the user will be able to communicate in the guild again, undefined or a time in the past if the user is not timed out */ + communicationDisabledUntil?: number; }