Update src/helpers/members/edit_member.ts

This commit is contained in:
Skillz4Killz
2021-08-11 12:23:52 -04:00
committed by GitHub
parent c654cae4c4
commit 8fb3db5f1d
+1 -1
View File
@@ -54,7 +54,7 @@ export async function editMember(guildId: bigint, memberId: bigint, options: Mod
endpoints.GUILD_MEMBER(guildId, memberId), endpoints.GUILD_MEMBER(guildId, memberId),
snakelize({ snakelize({
...options, ...options,
channelId: typeof options.channelId === "bigint" ? bigintToSnowflake(options.channelId) : options.channelId, channelId: options.channelId ? bigintToSnowflake(options.channelId) : options.channelId,
}) as ModifyGuildMember }) as ModifyGuildMember
); );