fix: type errors

This commit is contained in:
Yuzu 2022-07-05 14:30:04 -05:00
parent 971f541f83
commit 7faca2af68
3 changed files with 5 additions and 2 deletions

View File

@ -30,6 +30,7 @@ import type {
import type { Snowflake } from "../util/Snowflake.ts";
import type { Session } from "../session/Session.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 GuildChannel from "../structures/channels/GuildChannel.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 User from "../structures/User.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 Handler<T extends unknown[]> = (...args: T) => unknown;

View File

@ -3,7 +3,7 @@ import type { Model } from "../Base.ts";
import type { Snowflake } from "../../util/Snowflake.ts";
import type { Session } from "../../session/Session.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 BaseInteraction from "./BaseInteraction.ts";
import * as Routes from "../../util/Routes.ts";

View File

@ -30,3 +30,5 @@ export class InteractionFactory {
}
}
}
export default InteractionFactory;