fix: no dev mode

This commit is contained in:
TrèsAbhi committed 2024-07-24 13:14:21 -05:00
1 parent 8cae642243
commit 23974ee83a
1 file changed
+1 -2
+1 -2
View File
@@ -32,7 +32,6 @@ import { searchClansCommand } from '../../commands/searchClans';
import { searchPlayersCommand } from '../../commands/searchPlayers'; import { searchPlayersCommand } from '../../commands/searchPlayers';
import { statsCommand } from '../../commands/stats'; import { statsCommand } from '../../commands/stats';
import { todayCommand } from '../../commands/today'; import { todayCommand } from '../../commands/today';
import isDev from '../../core/blitzkit/isDev';
import { RenderConfiguration } from '../../core/blitzkit/renderConfiguration'; import { RenderConfiguration } from '../../core/blitzkit/renderConfiguration';
import { secrets } from '../../core/blitzkit/secrets'; import { secrets } from '../../core/blitzkit/secrets';
import handleAutocomplete from './handlers/autocomplete'; import handleAutocomplete from './handlers/autocomplete';
@@ -109,7 +108,7 @@ export const commands = Promise.allSettled(COMMANDS_RAW).then((rawCommands) => {
return commands; return commands;
} }
if (isDev()) registry.value.command.setDefaultMemberPermissions(0);
return { ...commands, [registry.value.command.name]: registry.value }; return { ...commands, [registry.value.command.name]: registry.value };
}, },
{}, {},