emo
SIASapphire - Imagine a framework
•Created by emo on 12/21/2023 in #sapphire-support
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
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.log
s just to be sure that it actually wasn't being called.
so when I run 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.log
s get printed to the terminal, and the commands are registered. This is the output running the same code with node:
43 replies