feat: help command #36
1 changed files with 5 additions and 3 deletions
|
@ -29,7 +29,7 @@ declare module 'discord.js' {
|
||||||
/** Command itself */
|
/** Command itself */
|
||||||
{
|
{
|
||||||
/** Data about the command */
|
/** Data about the command */
|
||||||
data: SlashCommandBuilder,
|
data(client: Client): SlashCommandBuilder,
|
||||||
/** How the command interact */
|
/** How the command interact */
|
||||||
interaction: (interaction: CommandInteraction, client: Client) => unknown
|
interaction: (interaction: CommandInteraction, client: Client) => unknown
|
||||||
}
|
}
|
||||||
|
@ -54,8 +54,10 @@ export default async () => {
|
||||||
default_lang: process.env.DEFAULT_LANG ?? 'fr',
|
default_lang: process.env.DEFAULT_LANG ?? 'fr',
|
||||||
};
|
};
|
||||||
|
|
||||||
client.commands.categories = new Collection();
|
client.commands = {
|
||||||
client.commands.list = new Collection();
|
categories: new Collection(),
|
||||||
|
list: new Collection(),
|
||||||
|
};
|
||||||
|
|
||||||
console.log('Translations progression :');
|
console.log('Translations progression :');
|
||||||
client.locales = await loadLocales(client.config.default_lang);
|
client.locales = await loadLocales(client.config.default_lang);
|
||||||
|
|
Loading…
Reference in a new issue