#ESM problem

1 messages · Page 1 of 1 (latest)

compact lion
#
import { SlashCommandBuilder } from "@discordjs/builders";
import { commandList } from "../../slash-register.js";

export default {
    data: new SlashCommandBuilder()
        .setName("help")
        .setDescription("Help command"),
    run: async (interaction, client) => {

    }
}

my slash commands are not registering when I have this import { commandList } from the file where they're registering, why?