sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Does Custom Piece auto-loaded?
Stop sapphire from automatically loading pieces
baseUserDirectory: null
in your client options to disable loading, this is one of the steps at registering and loading virtual pieces.What is the role of a Piece and a Store in SapphireJS?
Encountered error while handling an interaction handler run method.
Use Prisma with SapphireJS
Preconditions in Interaction Handler
Difference with dev and prod > The application now has 0 global commands
nodemon src/Bot.ts
- everything works as expected, the bot is online and responsive, with 4 global commands.
When I run my build command tsc
- the build is successful...text command triggered by mentioning bot (no command name)
I want to make a system about module command
Slash command autocompletion dynamic input options
Command#autocompleteRun
can be async, which means you can execute a fetch HTTP request to retrieve the results and show them back to the user.string-store not finding identifiers other than first in Schema on deserialize typescript
id
or cast the value to the correct type to fix this.Why my listener doesn't work?
@sapphire/framework
are you using?
2. What's your file/folder structure?
3. Did you use the CLI to generate your bot?
4. What's your main
(CJS) or module
(ESM) property in package.json
5. Are you using TypeScript? And if so, how are you compiling and running your code? That is to say, what are your build and startup scripts?...my guild related listeners arent firing but my client ones are
Unexspected end of JSON input
const body = await request.readBodyJson();
...Updating paginated message pages while the handler is running
JS Example has error with loading routes
Precondition not triggering "chatInputCommandDenied"
this.error
, however because you're using Array#forEach
which accepts a callback function that returns void
you're not actually returning this.error
for the function chatInputRun
but rather for the anonymous arrow function that is provided to Array#forEach
.
You can solve this by using for...of
instead....Sapphire keeps taking me in circles! Can't access my Dashboard.