mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
fix: Not being able to clear member timeout. (#2556)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user