mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-05 14:36:09 +00:00
fix: use ts-expect-error instead of ts-
This commit is contained in:
parent
400a8b8c52
commit
5470516e3d
2
src/cache/resources/emojis.ts
vendored
2
src/cache/resources/emojis.ts
vendored
@ -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;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ export class LinkButtonComponent extends BaseComponent<ComponentType.Button> {
|
||||
}
|
||||
|
||||
get url(): string {
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
return this.data.url;
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user