sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Is there a way to update all sapphire packages instead of going one by one?
is there a way to just update it all together instead of one by one? trying to migrate to v3
Solution:
yarn v1:
yarn upgrade --interactive
yarn v3: yarn upgrade-interactive
npm: npx npm-upgrade
pnpm: pnpm dlx npm-upgrade
...sapphireplugin-subcommands can't catch error?
Hello! I am using this subcommands plugin and i cannot log error in the console. no idea what is going on
Solution:
Not sure what you mean. Need more info. But it should be noted that subcommands have their own error listeners as documented here: https://www.sapphirejs.dev/docs/Documentation/api-plugins/modules/subcommands_src#subcommandpluginevents
Type 'DeveloperOnly' is not assignable to type 'PreconditionEntryResolvable'.
Type '"DeveloperOnly"' is not assignable to type 'PreconditionEntryResolvable'.
Type '"DeveloperOnly"' is not assignable to type 'PreconditionEntryResolvable'.
src/commands/eval.ts
. With a precondition file at src/preconditions/DeveloperOnly.ts
with the content https://hst.sh/ufunolenip.typescript . index.d.ts
exists with the following content https://hst.sh/gikuhixani.typescript . Eval starts with the content https://hst.sh/sagivaqahe.typescript .
...Solution:
may it be at fault of the PR you're using?
TypeError Cannot read properties of undefined (reading 'CHANNEL_CREATE')
So following the docs, I've set up everything and it should work, but I get the error in the title.
I'm using TypeScript, and I've installed the required packages (
@sapphire/framework
and discord.js
)
However when I do npm start
I get the error....Solution:
Sapphire isn't compatible with Discord.js v14 just yet, which is why you're getting the error.
sapphire type does not install on Node 19 [1]
Well, it seems to dislike me.
Fails to build dependencies as it seems like....
Solution:
Nuke
@sapphire/type
from deps, or downgrade to v18Has Anyone Used Reacord With Sapphire?
Not really a support question more of a discussion question just curious, it's a way of writing Discord menus with React - did a quick test with it on my bot I'm developing and holy cow it is such a nice way of making these UIs I got to delete a bunch of boilerplate code
Only downside is that the buttons don't continue to work after you restart which I'll have to use Sapphire interaction handlers for
Relevant Repo Links:...
Can you have folders for commands in SapphireJS
Hey there, by any chance is it possible to have folders for different types of commands on my bot?
What I mean:
So you see how you have the commands folder in your root/whatever-folder-you-are-using
is it possible to store commands in different folders within the commands folder?
e.g:...
Solution:
Yes, Sapphire recursively searches in the commands folder, or any pieces related folder.
Welcome
Hi, welcome to the #sapphire-support forum channel. Forum channels work similarly to thread-only channels, but come with a handy post search, so if you are seeking support with something, you can probably find an answer without creating a new post.
This forum has labels to divide posts into which libraries the questions are about. Please try to tag your posts appropriately.
When creating a post, you will have to assign a label before posting, if one is missing, please assign "🧵 Miscellaneous" and contact @Developers to add the missing label....