sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
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
sapphire cli not working
Fuzzy Search
await args.pick('member', { context: { performFuzzySearch: false } }).catch(() => {});
await args.pick('member', { context: { performFuzzySearch: false } }).catch(() => {});
await args.pick('member', { performFuzzySearch: false }).catch(() => {});
await args.pick('member', { performFuzzySearch: false }).catch(() => {});
I keep receiving this error when using @ApplyOptions.
TS1238: Unable to resolve signature of class decorator when called as an expression. The runtime will invoke the decorator with 2 arguments, but the decorator expects 1.
TS1238: Unable to resolve signature of class decorator when called as an expression. The runtime will invoke the decorator with 2 arguments, but the decorator expects 1.
Autocomplete handling in subcommands
Any reason as to why this event wouldn't be firing?
error
for example. Or if you do want that, set the name property in applyoptionsCan't get working in Deno
How to use @sapphire/decorators?
experimentalDecorators
to your tsconfig or extend @sapphire/ts-config/decorators
Is it possible to send an image using `plugin-api`
response.setContentType(MediaTypes.ImagePng).status(200).end(bufferOfTheImage)
if i remember correctly. Let me know if it works. We could add utility methods for this.How to get ID of command?
idHints
) but to get it dynamically this is the code:
For Global Commands
```js
import { container } from '@sapphire/framework';...[ARGS] this.error errors in the console
[ERROR] Encountered error on message command "ban" at path "D:\Gits\dqm-neo\src\commands\ban.ts" ArgumentError: Username must be less or equal than 20 characters long.
[ERROR] Encountered error on message command "ban" at path "D:\Gits\dqm-neo\src\commands\ban.ts" ArgumentError: Username must be less or equal than 20 characters long.
Memory Leak
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 interactionCreate listeners added to [Client]. Use emitter.setMaxListeners() to increase limit
I recently got this error, my bot only has 2 slash commands and 4 context menus, which are not used much, I already asked in the djs server and they said to go ask here instead...Slash command not updated
Class constructor _Listener cannot be invoked without 'new'
Sapphire's approach to components
message.awaitMessageComponentInteraction
2. If inputs result in completely separate functionality like Singleplayer vs Multiplayer, stringify all necessary state and add it to the custom ID, then parse it out in separate interaction handlers...Certain amount of infractions per page
Docker volume issue
Checking for flags in message commands
--silent
flag which if present will make the punishment silent (the user won't get a dm). Is this possible through sapphire?Get message text from ContextMenuCommandInteraction
MessageContextMenuInteraction