Fix typo in guild-create.ts

This commit is contained in:
Federico "fuji97" Rapetti 2022-01-13 12:51:56 +01:00
parent 03fdf1aab7
commit 732a3bb87a

View file

@ -17,7 +17,7 @@ export default async (guild: Guild): Promise<void> => {
const config = container.get<Config>(TYPES.Config);
// Setup slash commands
if (config.IS_PRODUCTION) {
if (!config.IS_PRODUCTION) {
const commands: ApplicationCommandData[] = container.getAll<Command>(TYPES.Command)
.filter(command => command.slashCommand?.name)
.map(command => command.slashCommand as ApplicationCommandData);