mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
change(helpers): editMember remove unnecessary converting
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user