Update edit_member.ts

This commit is contained in:
rigormorrtiss
2021-08-09 23:40:37 +04:00
committed by GitHub
parent 95de95ced9
commit c654cae4c4

View File

@@ -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) : null,
channelId: typeof options.channelId === "bigint" ? bigintToSnowflake(options.channelId) : options.channelId,
}) as ModifyGuildMember
);