fix: Not being able to clear member timeout. (#2556)

This commit is contained in:
Dorian Oszczęda
2022-10-27 09:21:40 -05:00
committed by GitHub
parent 1c7859fea9
commit 999fdb2c45
+2 -2
View File
@@ -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;
}