sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Bot doesn't trigger error events
throw new Error('You've got an error!');
) and an E500 (in this case checking a property of a null object)
I've added the
```...Events
constant we export.
Events.ChatInputCommandError
Events.ContextMenuCommandError
Events.MessageCommandError
and more...Default guildId for all application commands
Max Paginated Embeds
Context Menu Commands Lowercase Name
this.name
to "Warn"
.loadAll() blocks all shards?
Paginated message help
Plugin API - Origin
clientOptions.api.origin
to *
or whatever you want....How to Register a Discord Slash Command via Sapphire without creating a command file
container.client.stores.get('commands').set('name', data)
). See also https://github.com/sapphiredev/pieces/blob/375896b05897da0fbddbfa7a416c4c7f17445bc1/src/lib/structures/Store.ts#L103 for how we normally load files, you'll want to mimick this for in memory loading.
Also you're safe to start loading commands in the ready listener.... Slightly before that if you really must by using the plugin hooks but the difference is so minimal that it's probably not worth the effort....How can i use the ephemeral to PaginatedMessage?
run
methodSomehow I got in an infinite loop
Bot no longer runs after conversion to Typescript
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] ApplicationCommandRegistries: Took 201ms to initialize.
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] ApplicationCommandRegistries: Took 201ms to initialize.
What's your "main" property in package.json? src/index.ts
to dist/index.js
Preconditions not running
/listeners/commands/commandDenied
```js
const { Listener } = require("@sapphire/framework")
...Does .gitignore just not work?
git rm --cached <file>
. More info at https://stackoverflow.com/questions/1274057/how-do-i-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignoreTrying to use Buttons with sapphire
The inferred type of 'parse' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@sapphire/result'. This is likely not portable. A type annotation is necessary.
The inferred type of 'parse' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@sapphire/result'. This is likely not portable. A type annotation is necessary.
modal submission not triggering listener
Container augmentation no longer working
@sapphire/framework
like DetailedDescriptionCommandObject
is still working just fine.
Here is the file where I'm doing the augmentation: https://github.com/BenSegal855/Steve-V3/blob/dev/src/lib/augments.ts
Here is my current local package.json: https://pastebin.com/63NJ74FJ...yarn why typescript
)...Custom Events not Creating Listeners
Ignoring Precondition Failures
ChatInputCommandDenied
listener. The documentation suggests to a add information on the context
in the Precondition
```ts
export class MyDummyPreconditions extends Precondition {...Select menu interaction handler not working