Slash commands are not being registered when using Bun
Hello, I'm having trouble running the framework with bun because the slash commands are not being registered.
I created a new empty project with
My
and I have a directory
and the command(s) never get registered, I even tried setting up the guildIds for a specific server for it to be faster, but it didn't work either.
However, when I run the same code with node, the
I created a new empty project with
bun init and then installed discord.js and @sapphire/framework My
index.ts file, which is the entrypoint, looks like this:and I have a directory
commands with the file test.ts inside of it. this is what it looks like:- I added the
console.logs just to be sure that it actually wasn't being called.
bun run src/index.ts this is the output I get:and the command(s) never get registered, I even tried setting up the guildIds for a specific server for it to be faster, but it didn't work either.
However, when I run the same code with node, the
console.logs get printed to the terminal, and the commands are registered. This is the output running the same code with node: