sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Method to Prevent Commands Stores loads subfolders

Event from other bot
Slash Command doesn't register or working

Pass data from Precondition to ChatInputCommand
Context Command function not called, but Discord says bot is unresponsive

How to apply i18n in slash command names and descriptions
i18n applyLocalizedBuilder

Can I create or change commands folder location?
./src/commands/ping.js, to be in ./src/commands/information/ping.js or ./src/plugins/information/commands/ping.jsinteraction handlers with preconditions
precondition error logging in console
client.application has a bunch of null values
this.container.client.application.owner.id, however this.container.client.application has a bunch of null values.
When I throw it all to my console, these are the results: ...default contexts and integrations
plugin usage
Commands don't trigger with newline starts
How can i get registered Command JSON data?
toJSON() method for everything. The trick is to just make one yourself on each command.
Basically, in your command file, you create a method that just returns its own JSON. You can call it toJSON or whatever you want....Precondition position
Reloading command pieces not working in Bun
<piece>.reload(), with <CommandStore>.loadAll() or the @sapphire/plugin-hmr plugin, doesn't work and the command remains the same as before.
After long trial and error I found that I could make it work by first unloading the piece (with <piece>.unload()), then removing the command file from the import cache (with delete require.cache[piece.location.full], this works in Bun with TS/ES6), and then loading the piece again (either with <piece>.reload() or with <CommandStore>.loadAll()), and the changes were successfully applied to the commands.
This was tested in a minimal project, with only the following dependencies and file structure:...How to manual disable precondition?