sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
How can I find out what events there are, and what the args are?
sapphire generate listener
generates a listener different than the default MentionPrefixOnly listener. I have tried scouring the documentation but I cannnot find anything relating to the arguments of run().
Thank you!...Unable to get piece's name with CommandStore#get when piece's enabled is false
The precondition "SubcommandCooldown" is not available.
import('@sapphire/plugin-subccommands/register')
(mentioned in the readme)...TypeError: Cannot read properties of undefined (reading 'options')
Change select menu options to custom options for paginated messages
@sapphire/discord.js-utilities
for Paginated Messages, if that's useful....Is it possible to set retries for a MessagePrompter (message strat)?
Best way to use Preconditions to determine which commands show up in a /help command?
Subcommand Organization
_
so they're not loaded as pieces. If that doesn't work then yes you'll have to put them outside the commands folder.Create WebServer with Plugin API
LoaderStrategy: promises.opendir is being broken if using with @vercel/pkg library
Template project (Issues setting up from scratch)
node:31148) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension
. and TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\Documents\Git Projects\Lyra-Bot\src\index.ts
when switching the index.js
extension to .ts
. I am using node 20.10.0.
thank you!...Argument of type 'Context' is not assignable to parameter of type 'LoaderContext
Any tips for store data in the interaction ?
Error handling
chatInputRunError
/ contextMenuRunError
/ messageRunError
which is the highest level catch all event for commands.
NodeJS, or at least Discord bots, do not have some kind of error context that's a try/catch for everything. Errors for backend services are also different than frontend. For frontend you dont ever want to throw the user in an error state because they will see it and it disrupts their user experience, however, for backend errors they will end up in the logging at the worst and the application will remaining running...Removing pagination buttons on last page
Error when loading events
Command Preconditions
this.options.preconditions
or replace this
with however you got the Command instance @D24error TS6053: File '@sapphire/ts-config' not found.
jest
tests to a project and I started to get this error.
```
Error: Jest: Failed to parse the TypeScript config file jest.config.ts
TSError: тип Unable to compile TypeScript:...Slash commands are not being registered when using Bun
bun init
and then installed discord.js
and @sapphire/framework
My index.ts
file, which is the entrypoint, looks like this:...What is the event name for when vanity gets updated?