fix TCommand type

This commit is contained in:
kdh8219 2023-04-29 17:55:32 +09:00
parent d604d6e1de
commit aa76d4222b

View file

@ -8,7 +8,7 @@ import commands from "./command/commands.js";
export type TCommand = {
data: SlashCommandBuilder;
execute: (interaction: ChatInputCommandInteraction) => void;
execute: (interaction: ChatInputCommandInteraction) => Promise<void>;
};
export function getCommands(): Collection<string, TCommand> {
const commandColection = new Collection<string, TCommand>();