From c65a54ac543fa56ab3ebb5b8244528efa44e2baa Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Fri, 7 May 2021 13:08:21 +0000 Subject: [PATCH] quick fix --- src/structures/guild.ts | 2 +- src/structures/member.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/guild.ts b/src/structures/guild.ts index 96c3a6ae3..59f452130 100644 --- a/src/structures/guild.ts +++ b/src/structures/guild.ts @@ -258,7 +258,7 @@ export async function createDiscordenoGuild( for (const hash of hashes) { const transformed = hash.value ? iconHashToBigInt(hash.value) : undefined; if (transformed) { - props.icon = createNewProp(hash.value); + props[hash.name] = createNewProp(hash.value); if (transformed.animated) bitfield |= hash.toggle; } } diff --git a/src/structures/member.ts b/src/structures/member.ts index 2805114b4..fadb070fb 100644 --- a/src/structures/member.ts +++ b/src/structures/member.ts @@ -138,10 +138,10 @@ export async function createDiscordenoMember( continue; } - if (key === "icon") { + if (key === "avatar") { const transformed = value ? iconHashToBigInt(value) : undefined; if (transformed?.animated) bitfield |= memberToggles.animatedAvatar; - props.icon = createNewProp(transformed?.bigint); + props.avatar = createNewProp(transformed?.bigint); } props[key] = createNewProp(