mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-03 15:07:20 +02:00
corrige top
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user