From 999fdb2c45411d976d7e56cad61dac24267f15eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Oszcz=C4=99da?= Date: Thu, 27 Oct 2022 15:21:40 +0100 Subject: [PATCH] fix: Not being able to clear member timeout. (#2556) --- helpers/members/editMember.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/members/editMember.ts b/helpers/members/editMember.ts index ef1b1058b..651b6f245 100644 --- a/helpers/members/editMember.ts +++ b/helpers/members/editMember.ts @@ -37,7 +37,7 @@ export async function editMember( channel_id: options.channelId?.toString(), communication_disabled_until: options.communicationDisabledUntil ? new Date(options.communicationDisabledUntil).toISOString() - : undefined, + : options.communicationDisabledUntil, }, ); @@ -57,5 +57,5 @@ export interface ModifyGuildMember { /** Id of channel to move user to (if they are connected to voice). Requires the `MOVE_MEMBERS` permission */ channelId?: BigString | null; /** when the user's timeout will expire and the user will be able to communicate in the guild again (up to 28 days in the future), set to null to remove timeout. Requires the `MODERATE_MEMBERS` permission */ - communicationDisabledUntil?: number; + communicationDisabledUntil?: number | null; }