sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Would there be a way to make a command list?
Commands...
Clear Command Cache?
InteractionHandler Buttons
interaction-handler/Buttons
The error I am getting is:
```
[ERROR] Encountered error while handling an interaction handler run method for interaction-handler "CancelSetup" at path "C:\Users\ItzEx\OneDrive\Desktop\Projects\TicketPulse\src\interaction-handlers\Buttons\Setup\CancelSetup p.ts" Error [InteractionNotReplied]: The reply to this interaction has not been sent or deferred....interaction.update()
https://discord.js.org/#/docs/discord.js/main/class/ButtonInteraction?scrollTo=update...ValidationError: Expected a string primitive
Need help for ContextMenuCommand
- public override async contextMenuRun(interaction: Command.ContextMenuCommandInteraction) {
+ public override async contextMenuRun(interaction: UserContextMenuCommandInteraction) {
- public override async contextMenuRun(interaction: Command.ContextMenuCommandInteraction) {
+ public override async contextMenuRun(interaction: UserContextMenuCommandInteraction) {
How to use sapphire framework decoraters plugin
"@sapphire/ts-config/decorators"
in your tsconfig.json
? Else, please show the aforementioned file. This error comes from using ES decorators rather than the legacy ones.check if message starts with the prefix
Get command used with a message object
Duplicate identifier "Preconditions" when module augmenting "@sapphire/framework"
Object literal may only specify known properties, and 'tasks' does not exist in type 'ClientOptions'
sapphire new
, using the minimal template.
I'm trying to add the @sapphire/plugin-scheduled-tasks
plugin.
Following the doc, I use the npm install command and I added the register in the setup.ts
.....d.ts
for CJS instead of .d.cts
because it works just fine when using ESM
For now if you add a line import '@sapphire/plugin-scheduled-tasks';
then it's fixed @Pandraghon
pinging @vladdy here as well for reference...Subcommands Refusing to work for anyone but me?
lm
and card
which is in a leveling module, and these are the only subcommands in the module and they dont seem to work for anyone else but me. They were working a few days ago, was there a change that checks for bot owner permissions?Unknown Interaction
Interaction handlers problem
if(condition) return this.some()
so you don't have a negated if condition.Weird type error
How to use "and" & "or" with preconditions?
[['AdminOnly', ['ModOnly', 'OwnerOnly']], 'InVoiceChannel'];
for
- AdminOnly
- AND ModOnly OR OwnerOnly
- AND InVoiceChannel
...Proper way to setup ESLint
how to make message when command is in cooldown?
How to push incomplete .env file to repo?
.env.development.local
for development tokens/secrets, and .env.production.local
for production ones. They're not pushed because .gitignore
: https://github.com/sapphiredev/gemboard/blob/main/.gitignore#L24-L27
The reason why the extra files work (when dotenv
wouldn't load further than just .env
) is because the project uses @skyra/env-utilities
(dependencies
in package.json
), which loads them, more information on the package's README....Command not registering