From d1766cd8625c723c0c54a0ff9a67a6231c89ec25 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Tue, 16 Aug 2022 20:47:22 -0500 Subject: [PATCH] fix: remove parsed avatar hashes from webhooks --- packages/core/src/structures/message.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/core/src/structures/message.ts b/packages/core/src/structures/message.ts index ab2f93a..6321306 100644 --- a/packages/core/src/structures/message.ts +++ b/packages/core/src/structures/message.ts @@ -15,7 +15,7 @@ import type { import type { Channel } from './channels'; import type { Component } from './components'; import type { MessageInteraction } from './interactions'; -import { MessageFlags, Util } from '../utils/util'; +import { MessageFlags } from '../utils/util'; import { Snowflake } from '../snowflakes'; import { ChannelFactory, ThreadChannel } from './channels'; import { User } from './user'; @@ -115,7 +115,7 @@ export interface WebhookAuthor { id: string; username: string; discriminator: string; - avatar?: bigint; + avatar?: string; } /** @@ -187,9 +187,7 @@ export class Message implements Model { id: data.webhook_id!, username: data.author.username, discriminator: data.author.discriminator, - avatar: data.author.avatar - ? Util.iconHashToBigInt(data.author.avatar) - : undefined, + avatar: data.author.avatar ? data.author.avatar : undefined, }; }