mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
fix avatrin tojson
This commit is contained in:
@@ -16,7 +16,7 @@ import type { DiscordImageSize } from "../types/misc/image_size.ts";
|
||||
import type { User } from "../types/users/user.ts";
|
||||
import { snowflakeToBigint } from "../util/bigint.ts";
|
||||
import { Collection } from "../util/collection.ts";
|
||||
import { iconHashToBigInt } from "../util/hash.ts";
|
||||
import { iconBigintToHash, iconHashToBigInt } from "../util/hash.ts";
|
||||
import { createNewProp } from "../util/utils.ts";
|
||||
import { DiscordenoGuild } from "./guild.ts";
|
||||
|
||||
@@ -106,7 +106,7 @@ const baseMember: Partial<DiscordenoMember> = {
|
||||
id: this.id?.toString(),
|
||||
username: this.username,
|
||||
discriminator: this.discriminator?.toString(),
|
||||
avatar: this.avatar,
|
||||
avatar: this.avatar ? iconBigintToHash(this.avatar) : undefined,
|
||||
bot: this.bot,
|
||||
system: this.system,
|
||||
mfaEnabled: this.mfaEnabled,
|
||||
|
||||
Reference in New Issue
Block a user