sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
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
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 .
😅Problem loading virtual pieces
rewrite-sapphire
branch)...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...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...[EMPTY_MODULE] Error:
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.welcome bot
guildMemberAdd
, the DiscordJS event for when a new member joins the server
3. When that listener pops send a message to the configured channel, or the system channel if none was set.
Also refer to our user guide for getting started: https://sapphirejs.dev...How do you register paths for pieces? Also have an additional question when this one is solved.
Question
frustrating unknown interaction
Distube and sapphire
interaction.options.getMember() not definable?
interaction.options.getMember()
is not valid... While on the Discord.js docs it is.
I already made Member
to be outputted to a message, and it says @Jarvo, so it should be correct...
```js
import { Command } from "@sapphire/framework";...