fix TCommand type
This commit is contained in:
parent
d604d6e1de
commit
aa76d4222b
|
@ -8,7 +8,7 @@ import commands from "./command/commands.js";
|
||||||
|
|
||||||
export type TCommand = {
|
export type TCommand = {
|
||||||
data: SlashCommandBuilder;
|
data: SlashCommandBuilder;
|
||||||
execute: (interaction: ChatInputCommandInteraction) => void;
|
execute: (interaction: ChatInputCommandInteraction) => Promise<void>;
|
||||||
};
|
};
|
||||||
export function getCommands(): Collection<string, TCommand> {
|
export function getCommands(): Collection<string, TCommand> {
|
||||||
const commandColection = new Collection<string, TCommand>();
|
const commandColection = new Collection<string, TCommand>();
|
||||||
|
|
Loading…
Reference in a new issue