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 {
|
export class Emojis extends GuildRelatedResource {
|
||||||
namespace = 'emoji';
|
namespace = 'emoji';
|
||||||
|
|
||||||
//@ts-ignore
|
//@ts-expect-error
|
||||||
filter(data: APIEmoji, id: string, guild_id?: string) {
|
filter(data: APIEmoji, id: string, guild_id?: string) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ export class LinkButtonComponent extends BaseComponent<ComponentType.Button> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get url(): string {
|
get url(): string {
|
||||||
// @ts-ignore
|
// @ts-expect-error
|
||||||
return this.data.url;
|
return this.data.url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,11 +124,10 @@ export class BaseInteraction<
|
|||||||
case InteractionResponseType.UpdateMessage:
|
case InteractionResponseType.UpdateMessage:
|
||||||
return {
|
return {
|
||||||
type: body.type,
|
type: body.type,
|
||||||
// @ts-ignore
|
//@ts-ignore
|
||||||
data: {
|
data: {
|
||||||
// @ts-ignore
|
|
||||||
...(body.data ?? {}),
|
...(body.data ?? {}),
|
||||||
// @ts-ignore
|
//@ts-ignore
|
||||||
components: body.data?.components?.map(x => (x instanceof ActionRow ? x.toJSON() : x)) ?? undefined,
|
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,
|
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,
|
attachments: body.data?.attachments?.map((x, i) => ({ id: i, ...resolveAttachment(x) })) ?? undefined,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user