From aa76d4222b5e6a7b7846ac4b48148b3523353d92 Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Sat, 29 Apr 2023 17:55:32 +0900 Subject: [PATCH] fix TCommand type --- src/functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.ts b/src/functions.ts index d4c6419..8a83e81 100644 --- a/src/functions.ts +++ b/src/functions.ts @@ -8,7 +8,7 @@ import commands from "./command/commands.js"; export type TCommand = { data: SlashCommandBuilder; - execute: (interaction: ChatInputCommandInteraction) => void; + execute: (interaction: ChatInputCommandInteraction) => Promise; }; export function getCommands(): Collection { const commandColection = new Collection();