fix: use ts-expect-error instead of ts-

This commit is contained in:
MARCROCK22 2024-04-20 12:44:37 -04:00
parent 400a8b8c52
commit 5470516e3d
3 changed files with 4 additions and 5 deletions

View File

@ -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;
}

View File

@ -8,7 +8,7 @@ export class LinkButtonComponent extends BaseComponent<ComponentType.Button> {
}
get url(): string {
// @ts-ignore
// @ts-expect-error
return this.data.url;
}

View File

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