feat: help command #36

Merged
Anri merged 23 commits from help into main 2022-07-25 00:54:19 +02:00
Showing only changes of commit 743d6eb471 - Show all commits

View file

@ -29,7 +29,7 @@ declare module 'discord.js' {
/** Command itself */
{
/** Data about the command */
data: SlashCommandBuilder,
data(client: Client): SlashCommandBuilder,
/** How the command interact */
interaction: (interaction: CommandInteraction, client: Client) => unknown
}
@ -54,8 +54,10 @@ export default async () => {
default_lang: process.env.DEFAULT_LANG ?? 'fr',
};
client.commands.categories = new Collection();
client.commands.list = new Collection();
client.commands = {
categories: new Collection(),
list: new Collection(),
};
console.log('Translations progression :');
client.locales = await loadLocales(client.config.default_lang);