mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
fix: type errors
This commit is contained in:
parent
971f541f83
commit
7faca2af68
@ -30,6 +30,7 @@ import type {
|
|||||||
import type { Snowflake } from "../util/Snowflake.ts";
|
import type { Snowflake } from "../util/Snowflake.ts";
|
||||||
import type { Session } from "../session/Session.ts";
|
import type { Session } from "../session/Session.ts";
|
||||||
import type { Channel } from "../structures/channels/ChannelFactory.ts";
|
import type { Channel } from "../structures/channels/ChannelFactory.ts";
|
||||||
|
import type { Interaction } from "../structures/interactions/InteractionFactory.ts";
|
||||||
import ChannelFactory from "../structures/channels/ChannelFactory.ts";
|
import ChannelFactory from "../structures/channels/ChannelFactory.ts";
|
||||||
import GuildChannel from "../structures/channels/GuildChannel.ts";
|
import GuildChannel from "../structures/channels/GuildChannel.ts";
|
||||||
import ThreadChannel from "../structures/channels/ThreadChannel.ts";
|
import ThreadChannel from "../structures/channels/ThreadChannel.ts";
|
||||||
@ -38,7 +39,7 @@ import Member from "../structures/Member.ts";
|
|||||||
import Message from "../structures/Message.ts";
|
import Message from "../structures/Message.ts";
|
||||||
import User from "../structures/User.ts";
|
import User from "../structures/User.ts";
|
||||||
import Guild from "../structures/guilds/Guild.ts";
|
import Guild from "../structures/guilds/Guild.ts";
|
||||||
import InteractionFactory from "../structures/interactions/interactions/InteractionFactory.ts";
|
import InteractionFactory from "../structures/interactions/InteractionFactory.ts";
|
||||||
|
|
||||||
export type RawHandler<T> = (...args: [Session, number, T]) => void;
|
export type RawHandler<T> = (...args: [Session, number, T]) => void;
|
||||||
export type Handler<T extends unknown[]> = (...args: T) => unknown;
|
export type Handler<T extends unknown[]> = (...args: T) => unknown;
|
||||||
|
@ -3,7 +3,7 @@ import type { Model } from "../Base.ts";
|
|||||||
import type { Snowflake } from "../../util/Snowflake.ts";
|
import type { Snowflake } from "../../util/Snowflake.ts";
|
||||||
import type { Session } from "../../session/Session.ts";
|
import type { Session } from "../../session/Session.ts";
|
||||||
import type { ApplicationCommandTypes, DiscordInteraction, InteractionTypes } from "../../vendor/external.ts";
|
import type { ApplicationCommandTypes, DiscordInteraction, InteractionTypes } from "../../vendor/external.ts";
|
||||||
import type { ApplicationCommandOptionChoice } from "./BaseInteraction.ts";
|
import type { ApplicationCommandOptionChoice } from "./CommandInteraction.ts";
|
||||||
import { InteractionResponseTypes } from "../../vendor/external.ts";
|
import { InteractionResponseTypes } from "../../vendor/external.ts";
|
||||||
import BaseInteraction from "./BaseInteraction.ts";
|
import BaseInteraction from "./BaseInteraction.ts";
|
||||||
import * as Routes from "../../util/Routes.ts";
|
import * as Routes from "../../util/Routes.ts";
|
||||||
|
@ -30,3 +30,5 @@ export class InteractionFactory {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default InteractionFactory;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user