sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Will using the new plugin-utilities-store enable HMR for this Helper files?
"Send" does not exist on type "channel"
How can I create a listener for @discordjs/voice states?
@sapphire/shapeshift (?) crashes bot when trying to send embed with description exceeding 4096 chars
message.createMessageComponentCollector
method. I do all this inside messageRun
method. The bot send the info embed with button just fine, but when button is pressed to fetch the public events of a github user, it basically crashes bot even when I wrap my whole login inside messageRun in a try-catch block, it still crashes bot because sometimes embed description is set to long string of 4096+ chars which the button interaction would send. The full error I get is here: https://gist.github.com/o-wo/c53217fdcca9d547bba353213a865e4d
I cant figure out what I did wrong, I only want to understand what is crashing the bot: shapeshift or sapphire or its d.js issue? and why it is straight up crashing the bot? even when I put whole code logic inside try catch block. Since error log I see in console mentions shapeshift in many places, it suspects me to believe its causing this? hence I put question mark in post title. apologies for any misunderstanding on my part.
If any experts can point a novice like me in right direction or help me understand its cause, your kindness would be immensely appreciated. 🙏🏽...error
listener. Are you sure you haven't implemented a re-throwing mechanism in your own error
or messageError
listener?...uninstlling @sapphire
npm uninstall @sapphire/framework
npm uninstall @sapphire/framework
npm i
npm i
Manual task not executing
tempBan
was not found but the name of the file was tempban.ts
, so it wouldn't run because the file name was all lowercase.Registering commands and other paths
sapphire new
, everything works as intended. The commands in the commands
directory are registered properly.
However, if I do not use sapphire new
and try to add it to an existing project, without sapphire init
, it doesn't register the commands. After looking into it, and logging the stores, I see that the paths should be C:/.../myProject/bin/commands
, but the path is showing C:/.../myProject/commands
. Even if I copy the .sapphirerc.json
from the other working one....Is it possible to update slash command string options every time the command is ran?
scheduled jobs randomly stop working
sharding
Register command in only specific guilds
port 4000 on cluster
client.server.start
How to defer reply with Sapphirejs
Default preconditions
interactionCreate
event or something?position
option to any value (the higher the value the higher the priority) and it'll turn into a global precondition.Commands not responding to defaultPrefix
defaultPrefix
to "!"
:
```
const client: SapphireClient = new SapphireClient({
"intents": [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages],
"loadMessageCommandListeners": true,...ts not compiling well
Permissions
is removed in DJS v14, you need matching versions of all the Sapphire dependencies (their latest versions)How To Use The Enum Arg?
args.<method>('enum', { enum: ['one', 'two'] })
Let's users have custom folders for pieces
SapphireClientOptions
.