fix avatrin tojson

This commit is contained in:
Skillz4Killz
2021-05-23 21:02:15 +00:00
committed by GitHub
parent 75b3f72116
commit cb13bfdfd0

View File

@@ -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,