feat: restrict track command to staff

This commit is contained in:
Pihkaal
2025-11-08 13:17:42 +01:00
parent 2e08c8a303
commit 5b571c76ea

View File

@@ -233,6 +233,19 @@ client.on("messageCreate", async (message) => {
if (command === "ping") { if (command === "ping") {
await message.reply("pong"); await message.reply("pong");
} else if (command === "track") { } 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]; let playerName = args[0];
if (!playerName) { if (!playerName) {
await message.reply({ await message.reply({