change(helpers): editMember remove unnecessary converting

This commit is contained in:
ITOH
2021-08-15 11:50:30 +02:00
parent c66eed620b
commit 25fe3b21be

View File

@@ -52,10 +52,7 @@ export async function editMember(guildId: bigint, memberId: bigint, options: Mod
const result = await rest.runMethod<GuildMemberWithUser>(
"patch",
endpoints.GUILD_MEMBER(guildId, memberId),
snakelize({
...options,
channelId: options.channelId ? bigintToSnowflake(options.channelId) : options.channelId,
}) as ModifyGuildMember
snakelize(options) as ModifyGuildMember
);
const member = await structures.createDiscordenoMember(result, guildId);