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

@ -126,7 +126,6 @@ export class BaseInteraction<
type: body.type,
//@ts-ignore
data: {
// @ts-ignore
...(body.data ?? {}),
//@ts-ignore
components: body.data?.components?.map(x => (x instanceof ActionRow ? x.toJSON() : x)) ?? undefined,