From 5470516e3dde20ef8da1c9e48ba437c15440640f Mon Sep 17 00:00:00 2001 From: MARCROCK22 <57925328+MARCROCK22@users.noreply.github.com> Date: Sat, 20 Apr 2024 12:44:37 -0400 Subject: [PATCH] fix: use ts-expect-error instead of ts- --- src/cache/resources/emojis.ts | 2 +- src/components/ButtonComponent.ts | 2 +- src/structures/Interaction.ts | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/cache/resources/emojis.ts b/src/cache/resources/emojis.ts index 043eed4..a138a6f 100644 --- a/src/cache/resources/emojis.ts +++ b/src/cache/resources/emojis.ts @@ -7,7 +7,7 @@ import { GuildRelatedResource } from './default/guild-related'; export class Emojis extends GuildRelatedResource { namespace = 'emoji'; - //@ts-ignore + //@ts-expect-error filter(data: APIEmoji, id: string, guild_id?: string) { return true; } diff --git a/src/components/ButtonComponent.ts b/src/components/ButtonComponent.ts index 8f592bb..d7e35f5 100644 --- a/src/components/ButtonComponent.ts +++ b/src/components/ButtonComponent.ts @@ -8,7 +8,7 @@ export class LinkButtonComponent extends BaseComponent { } get url(): string { - // @ts-ignore + // @ts-expect-error return this.data.url; } diff --git a/src/structures/Interaction.ts b/src/structures/Interaction.ts index 3f2babd..07f3694 100644 --- a/src/structures/Interaction.ts +++ b/src/structures/Interaction.ts @@ -124,11 +124,10 @@ export class BaseInteraction< case InteractionResponseType.UpdateMessage: return { type: body.type, - // @ts-ignore + //@ts-ignore data: { - // @ts-ignore ...(body.data ?? {}), - // @ts-ignore + //@ts-ignore components: body.data?.components?.map(x => (x instanceof ActionRow ? x.toJSON() : x)) ?? undefined, embeds: body.data?.embeds?.map(x => (x instanceof Embed ? x.toJSON() : x)) ?? undefined, attachments: body.data?.attachments?.map((x, i) => ({ id: i, ...resolveAttachment(x) })) ?? undefined,