mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
fix: edit member transforms for discord
This commit is contained in:
@@ -10,11 +10,13 @@ export async function editMember(bot: Bot, guildId: bigint, memberId: bigint, op
|
||||
bot.constants.endpoints.GUILD_MEMBER(guildId, memberId),
|
||||
{
|
||||
nick: options.nick,
|
||||
roles: options.roles,
|
||||
roles: options.roles?.map((id) => id.toString()),
|
||||
mute: options.mute,
|
||||
deaf: options.deaf,
|
||||
channel_id: options.channelId,
|
||||
communication_disabled_until: options.communicationDisabledUntil,
|
||||
channel_id: options.channelId?.toString(),
|
||||
communication_disabled_until: options.communicationDisabledUntil
|
||||
? new Date(options.communicationDisabledUntil).toISOString()
|
||||
: undefined,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user