From 5b571c76ea0059be67ff79bc41034201c8625a5a Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Sat, 8 Nov 2025 13:17:42 +0100 Subject: [PATCH] feat: restrict track command to staff --- src/index.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/index.ts b/src/index.ts index c1c07c1..5bcdea7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -233,6 +233,19 @@ client.on("messageCreate", async (message) => { if (command === "ping") { await message.reply("pong"); } else if (command === "track") { + if (!message.member.roles.cache.has("1147963065640439900")) { + await message.reply({ + embeds: [ + { + description: + "### ❌ Erreur\n\n\nTu t'es cru chez mémé ou quoi faut être staff", + color: 15335424, + }, + ], + }); + return; + } + let playerName = args[0]; if (!playerName) { await message.reply({