From 8423c7ac44fa274a7751bff6c27995601f50fc59 Mon Sep 17 00:00:00 2001 From: arthur Date: Mon, 8 Jul 2024 23:18:39 +0200 Subject: [PATCH] corrige top --- commands/casino/top.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commands/casino/top.js b/commands/casino/top.js index 117973e..56a0430 100644 --- a/commands/casino/top.js +++ b/commands/casino/top.js @@ -327,6 +327,12 @@ module.exports = { if (!interaction.isStringSelectMenu()) return; if (interaction.customId === "topLeaderboard") { + if (interaction.user.id !== message.author.id) { + return interaction.reply({ + content: "Vous n'avez pas la permission d'utiliser ce menu", + ephemeral: true, + }); + } const selected = interaction.values[0]; await interaction.deferUpdate();