mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: disabled normies from using dev commands
This commit is contained in:
1 parent
da950ad42f
commit
8bf8030157
1 file changed
+3
-3
@@ -25,7 +25,7 @@ import playerinfo from '../../commands/playerinfo.js';
|
|||||||
import searchclans from '../../commands/searchclans.js';
|
import searchclans from '../../commands/searchclans.js';
|
||||||
import searchplayers from '../../commands/searchplayers.js';
|
import searchplayers from '../../commands/searchplayers.js';
|
||||||
import searchtanks from '../../commands/searchtanks.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 today from '../../commands/today.js';
|
||||||
import verify from '../../commands/verify.js';
|
import verify from '../../commands/verify.js';
|
||||||
import { DISCORD_TOKEN } from '../../core/node/arguments.js';
|
import { DISCORD_TOKEN } from '../../core/node/arguments.js';
|
||||||
@@ -81,14 +81,14 @@ export const commands: Record<string, CommandRegistry> = (
|
|||||||
searchclans,
|
searchclans,
|
||||||
searchplayers,
|
searchplayers,
|
||||||
searchtanks,
|
searchtanks,
|
||||||
stats,
|
statsfull,
|
||||||
today,
|
today,
|
||||||
verify,
|
verify,
|
||||||
ping,
|
ping,
|
||||||
evolution,
|
evolution,
|
||||||
] as CommandRegistry[]
|
] as CommandRegistry[]
|
||||||
).reduce((accumulator, registry) => {
|
).reduce((accumulator, registry) => {
|
||||||
// if (isDev()) registry.command.setName(`${registry.command.name}dev`);
|
if (isDev()) registry.command.setDefaultMemberPermissions(0);
|
||||||
|
|
||||||
return { ...accumulator, [registry.command.name]: registry };
|
return { ...accumulator, [registry.command.name]: registry };
|
||||||
}, {});
|
}, {});
|
||||||
|
|||||||
Reference in new issue
Block a user