diff --git a/src/typings/Types.ts b/src/typings/Types.ts deleted file mode 100644 index bf9708a..0000000 --- a/src/typings/Types.ts +++ /dev/null @@ -1,10 +0,0 @@ -type SnipeCache = { - author: string - content: string - channel: string - createdAt: number - deletedAt: number - attachments: string[] -} - -export default SnipeCache diff --git a/src/typings/index.ts b/src/typings/index.ts index c84b166..36d73a3 100644 --- a/src/typings/index.ts +++ b/src/typings/index.ts @@ -1,3 +1,13 @@ -import SnipeCache from "./Types" +import { ChatInputCommandInteraction } from "discord.js" +import { ExtendedClient } from "utils/Client" -export { SnipeCache } +export type SubcommandFunc = (interaction: ChatInputCommandInteraction, client?: ExtendedClient) => Promise + +export type SnipeCache = { + author: string + content: string + channel: string + createdAt: number + deletedAt: number + attachments: string[] +}