diff --git a/src/commands/misc/reminder.ts b/src/commands/misc/reminder.ts index 3dd6b3a..05da54c 100644 --- a/src/commands/misc/reminder.ts +++ b/src/commands/misc/reminder.ts @@ -137,8 +137,30 @@ export default { }, interaction: async (interaction: ChatInputCommandInteraction, client: Client) => { - const loc = getLocale(client, interaction.locale); + const loc_default = client.locales.get(client.config.default_lang); + const filename = getFilename(__filename); /* Votre code ici */ + const subcommand = interaction.options.getSubcommand(); + switch (subcommand) { + // New reminder + case loc_default?.get(`c_${filename}_sub1_name`) + ?.toLowerCase() ?? '': + break; + + // List reminders + case loc_default?.get(`c_${filename}_sub2_name`) + ?.toLowerCase() ?? '': + break; + + // Delete a reminder + case loc_default?.get(`c_${filename}_sub3_name`) + ?.toLowerCase() ?? '': + break; + + default: + console.error(`${__filename}: unknown subcommand (${subcommand})`); + break; + } }, };