mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
fix(helpers): pass null if options.channelId is falsy
This commit is contained in:
@@ -54,7 +54,7 @@ export async function editMember(guildId: bigint, memberId: bigint, options: Mod
|
||||
endpoints.GUILD_MEMBER(guildId, memberId),
|
||||
snakelize({
|
||||
...options,
|
||||
channelId: options.channelId ? bigintToSnowflake(options.channelId) : undefined,
|
||||
channelId: options.channelId ? bigintToSnowflake(options.channelId) : null,
|
||||
}) as ModifyGuildMember
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user