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,