From 23974ee83a3ad445aaba3be86160d540b3542e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 24 Jul 2024 13:14:21 -0500 Subject: [PATCH] fix: no dev mode --- src/events/interactionCreate/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/events/interactionCreate/index.ts b/src/events/interactionCreate/index.ts index 1ec8f5418..3d3818784 100644 --- a/src/events/interactionCreate/index.ts +++ b/src/events/interactionCreate/index.ts @@ -32,7 +32,6 @@ import { searchClansCommand } from '../../commands/searchClans'; import { searchPlayersCommand } from '../../commands/searchPlayers'; import { statsCommand } from '../../commands/stats'; import { todayCommand } from '../../commands/today'; -import isDev from '../../core/blitzkit/isDev'; import { RenderConfiguration } from '../../core/blitzkit/renderConfiguration'; import { secrets } from '../../core/blitzkit/secrets'; import handleAutocomplete from './handlers/autocomplete'; @@ -109,7 +108,7 @@ export const commands = Promise.allSettled(COMMANDS_RAW).then((rawCommands) => { return commands; } - if (isDev()) registry.value.command.setDefaultMemberPermissions(0); + return { ...commands, [registry.value.command.name]: registry.value }; }, {},