From 286cc5f9e339b5afe0eedf8806bec68e50c98039 Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 28 Jan 2024 17:47:16 +0100 Subject: [PATCH] Updated types --- src/typings/Types.ts | 10 ---------- src/typings/index.ts | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 src/typings/Types.ts 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[] +}