From 8bf803015767682ba644a10fcf0e76550cf56475 Mon Sep 17 00:00:00 2001 From: tresabhi Date: Tue, 27 Jun 2023 19:09:01 +0000 Subject: [PATCH] feat: disabled normies from using dev commands --- src/events/interactionCreate/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/events/interactionCreate/index.ts b/src/events/interactionCreate/index.ts index b70b6da24..b4f48ad9e 100644 --- a/src/events/interactionCreate/index.ts +++ b/src/events/interactionCreate/index.ts @@ -25,7 +25,7 @@ import playerinfo from '../../commands/playerinfo.js'; import searchclans from '../../commands/searchclans.js'; import searchplayers from '../../commands/searchplayers.js'; import searchtanks from '../../commands/searchtanks.js'; -import stats from '../../commands/stats.js'; +import statsfull from '../../commands/statsfull.js'; import today from '../../commands/today.js'; import verify from '../../commands/verify.js'; import { DISCORD_TOKEN } from '../../core/node/arguments.js'; @@ -81,14 +81,14 @@ export const commands: Record = ( searchclans, searchplayers, searchtanks, - stats, + statsfull, today, verify, ping, evolution, ] as CommandRegistry[] ).reduce((accumulator, registry) => { - // if (isDev()) registry.command.setName(`${registry.command.name}dev`); + if (isDev()) registry.command.setDefaultMemberPermissions(0); return { ...accumulator, [registry.command.name]: registry }; }, {});