sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Are command instance recreated every time someone use the associate slash command ?
Promise error sometimes on load - sapphire.js framework
Caching Problems
All Guilds are cached if you have the intent, and the client is ready.
While using intents like GuildMembers & Guilds.
i dont know if it fits into this forum, i tough because sapphire initates the listeners....
...Some questions
Sapphire command not recognized
sapphire -v I get this backyarn sapphire / yarn dlx sapphire instead. Or install it globally, how depends on your package manager (GIYF)
API Plugin Prefix
Task was not found | plugin-scheduled-tasks
[ScheduledTaskPlugin] There was no task found for "task_name"" error for all my scheduled tasks. Sometimes they run successfully but mostly they giving me this error.
There is the code of how i'm declaring task:
```ts
import { ApplyOptions } from "@sapphire/decorators"...Can't load subcommand
_ symbol (i.e. _add.ts) so sapphire skips them when loading
3. call those functions in the appropiate methods...
multiplie registered handlers
TypeScript Check
Variable parameter type based on the previous variable
set subcommand to one of my commands
For that command the values can be user, role or a string. Can I somehow change the option type (for example use addRoleOption instead of addStringOption) based on the value of the type option?
```...create a command that has spaces as one arg
!command <argwithspaces1> <argwithspaces2>, or even using seperators like |
i just dont know where to start or if its even possible at all ( i tried using args.repeat and args.nextMaybe but that didnt work at all )...Share sapphire stuff with multiple bots & possible monorepo setup
Splitting Subcommand functions to multiple files
messageRun chatInputRun entries so I could split the Subcommands into their own files/classes as the main command file is roughly 2.5k lines at the moment.
I know I could just have each method inside of the class then call the other classes/files inside of it (which is what I'm currently doing), just wanted to see if there was a cleaner way.
Is this possible?...Commands and listeners
Create a catch-all command to respond to any message?
@mention the bot with a query: @bot translate x to y. The Command class from what I gather will only trigger based on the name and the aliases? Makes sense, just wondering if there is a way to maybe fall-back if the bot is pinged and does not match a command, could there be a "default" command?
edit:...Working with Emoji's on SelectMenu Options
.setEmoji to set an emoji
https://discord.js.org/docs/packages/builders/1.7.0/StringSelectMenuOptionBuilder:Class#setEmoji...
Sapphire with TypeScript & Bun
Cant get bot to work when put bot related files to another folder in src
main to dist/index.js in package.json OR override the automatically resolved folder by setting baseUserDirectory in the client options