mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
quick fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user