fix(helpers): pass null if options.channelId is falsy

This commit is contained in:
rigormorrtiss
2021-08-09 23:24:38 +04:00
committed by GitHub
parent 924d2a82e7
commit 95de95ced9
+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: options.channelId ? bigintToSnowflake(options.channelId) : undefined, channelId: options.channelId ? bigintToSnowflake(options.channelId) : null,
}) as ModifyGuildMember }) as ModifyGuildMember
); );