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(