Skip to content

Commit 5470516

Browse files
committed
fix: use ts-expect-error instead of ts-
1 parent 400a8b8 commit 5470516

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/cache/resources/emojis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { GuildRelatedResource } from './default/guild-related';
77
export class Emojis extends GuildRelatedResource {
88
namespace = 'emoji';
99

10-
//@ts-ignore
10+
//@ts-expect-error
1111
filter(data: APIEmoji, id: string, guild_id?: string) {
1212
return true;
1313
}

src/components/ButtonComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class LinkButtonComponent extends BaseComponent<ComponentType.Button> {
88
}
99

1010
get url(): string {
11-
// @ts-ignore
11+
// @ts-expect-error
1212
return this.data.url;
1313
}
1414

src/structures/Interaction.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,10 @@ export class BaseInteraction<
124124
case InteractionResponseType.UpdateMessage:
125125
return {
126126
type: body.type,
127-
// @ts-ignore
127+
//@ts-ignore
128128
data: {
129-
// @ts-ignore
130129
...(body.data ?? {}),
131-
// @ts-ignore
130+
//@ts-ignore
132131
components: body.data?.components?.map(x => (x instanceof ActionRow ? x.toJSON() : x)) ?? undefined,
133132
embeds: body.data?.embeds?.map(x => (x instanceof Embed ? x.toJSON() : x)) ?? undefined,
134133
attachments: body.data?.attachments?.map((x, i) => ({ id: i, ...resolveAttachment(x) })) ?? undefined,

0 commit comments

Comments
 (0)