diff --git a/src/commands/config/channels.ts b/src/commands/config/channels.ts index 3f18170..9c6dcf8 100644 --- a/src/commands/config/channels.ts +++ b/src/commands/config/channels.ts @@ -48,7 +48,7 @@ export async function execute(interaction: CommandInteraction) { return } switch (interaction.options.get("action")?.value) { - case "view": + case "view": { const serverConfig = await prisma.config.findMany({ where: { guildId: interaction.guildId?.toString() as string @@ -67,7 +67,8 @@ export async function execute(interaction: CommandInteraction) { await interaction.editReply({ embeds: [responseEmbed] }) break - case "edit": + } + case "edit": { const key = interaction.options.get("key")?.value as string const channel = interaction.options.get("channel")?.value as string if (!key || !channel) { @@ -100,5 +101,6 @@ export async function execute(interaction: CommandInteraction) { } await interaction.editReply({ embeds: [successEmbed(interaction, "Configuration mise à jour.")] }) break + } } } \ No newline at end of file diff --git a/src/commands/general/info.ts b/src/commands/general/info.ts index c674bb0..4afe928 100644 --- a/src/commands/general/info.ts +++ b/src/commands/general/info.ts @@ -26,7 +26,7 @@ export async function execute(interaction: CommandInteraction) { await interaction.deferReply({ ephemeral: true,fetchReply: true }) switch (interaction.options.get("section")?.value) { - case "bot": + case "bot": { const version = packageJson.version const libs = Object.keys(packageJson.dependencies).join("\n") const author = packageJson.author.name @@ -48,7 +48,8 @@ export async function execute(interaction: CommandInteraction) { await interaction.editReply({ embeds: [infoEmbed], files: [{ attachment: infoImage, name: "info.png" }] }) break - case "user": + } + case "user": { const user = interaction.user const dbUser = await prisma.globalUserData.findFirst({ where: { @@ -76,8 +77,10 @@ export async function execute(interaction: CommandInteraction) { await interaction.editReply({ embeds: [embed] }) break - default: + } + default: { await interaction.editReply({ content: "Section inconnue" }) break + } } }