sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Precondition i18n
Got this error when executing command /kick
![No description](https://cdn.answeroverflow.com/1204155329735041145/IMG_7845.png)
How to add string options
Error when using @sapphire/type
Error: Cannot find module '/workspaces/shim/node_modules/@sapphire/type/prebuild/type-node-v115-linux-x64-glibc-2.31/type.node'
Error: Cannot find module '/workspaces/shim/node_modules/@sapphire/type/prebuild/type-node-v115-linux-x64-glibc-2.31/type.node'
Commands + Listeners not registering
Delete Message Instantly
deleteMessageImmediately
function in the file above actually delete the message instantly? Faster than doing <Message>.delete()
?...message.delete
but doesnt throw an error on error codes.Listener run() signature
run
method of any given listener - they're different for each event.
I'm sure there's an obvious way to get this, without trial and error and debugging to see what's available to it - where am I not looking?
```ts
import { Events, Listener, ListenerOptions } from "@sapphire/framework";...extends Listener<typeof Events.GuildCreate>
but that won't implicitly type the run parameters, it'll just error if you provide the wrong types. Sadly TS offers nothing better.PaginatedMessageEmbedFields empty array
.make()
to a different variable and then you call the original object's run. Change the last line to pages.run(interaction)
or dont assign it to a different variable.Issue registering command on a specific guild using guildIds
![No description](https://cdn.answeroverflow.com/1202462028241965126/image.png)
Subfolders Inside Commands Folder
Encountering Error `TypeError: emitter.getMaxListeners is not a function`
ts-node
is like a minefield, it doesn't always behave as desired and most of the time it's more efficient to use tsc --watch
+ node .
😅![No description](https://cdn.answeroverflow.com/1201383837595336704/image.png)
Problem loading virtual pieces
rewrite-sapphire
branch)...![No description](https://cdn.answeroverflow.com/1201183030690185336/image.png)
Am I doing this wrong? Message doesn't send for preconditions, but the precondition works FINE
chatInputCommandDenied
listener still wherein you can send error.message
.
Also see https://sapphirejs.dev/docs/Guide/preconditions/reporting-precondition-failure...![No description](https://cdn.answeroverflow.com/1200889818675150909/image.png)
Problem with loader file generator
generate-loader
is generating a loader at unintended location with .js
extension applied 🤔
Also I have nested listeners, so the paths for those are not getting generated porperly...![No description](https://cdn.answeroverflow.com/1200499445498921080/image.png)
[EMPTY_MODULE] Error:
![No description](https://cdn.answeroverflow.com/1200406268918124564/IMG_7806.png)
Error Handling
[ERROR] Encountered error on message command "test" at path "C:\Users\cmart\Desktop\Discord Bots\Sapphire\src\commands\Developer\test.js"
Anyway of removing these error messages if the type of the error is a string? I don't want this error showing up on console when I do stuff like, for example:
```js...PaginatedMessage: refresh pages after setPages()
NPM script stops working when tsconfig extends @sapphire/ts-config
"prebuild": "rimraf dist types",
"build": "tsc",
"prebuild": "rimraf dist types",
"build": "tsc",
tsconfig.tsbuildinfo
, that'll probably fix it. It's the cache file for incremental builds which are enabled by the config.