Merge pull request #1096 from discordeno/change-remove-checks

change(helpers): editMember remove redundant converting
This commit is contained in:
Skillz4Killz
2021-08-15 13:29:09 -04:00
committed by GitHub

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);