sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
use wildcard paths on InteractionHandlerStore#registerPath
this.stores.get('listeners').registerPath(join(this.rootData.root, './handlers/events')).registerPath(join(this.rootData.root, "./integrations/**/*"));
this.stores.get('listeners').registerPath(join(this.rootData.root, './handlers/events')).registerPath(join(this.rootData.root, "./integrations/**/*"));
Interaction Handlers & "Button is not for you" response
awaitComponents
where you can user filter instead of sappire handlers. An example of this can be seen in PaginatedMessage i.e.e from @DragoniteVoiceStateUpdate
Problems with plugin api
this.container.client.server.server.listening
, which returned true and I also listed routes through the container.
The problem i'm having is whenever I attempt to send a curl request or a web request to the url I get a connection refused error....Timestamp problem
Is there a better way to handle both message and slash commands?
messageRun
method to handle message commands and override chatInputRun
for slash commands.
This leads to unnecessary code duplication, since logic would be mostly the same.
discord.py
or serenity
expose something like hybrid commands , so you can write a single handler for any interaction, is there an equivalent for Sapphire?...I have use @/ as Root
#
instead of @
in the process, or use something like the module-alias package.
Is there a way to make an Event (registerApplicationCommands) 'wait' before triggering?
unregisterer.js
I'm calling it in another handler named bootstrap.js
bootstrap.js
is then imported into index.js
then called as such await handlers()
on ready
event
I use a custom structure named SlashCommand
imported in every command file (to replace Command
of @sapphire/framework
): this only serves to prevent spamming registerApplicationCommands
in every single command file...SubcommandErrorEvent how to?
Button Interaction Pass Data
How to organize commands?
Help me to setup this sapphire typescript
Which type to use for context in scheduled task plugin error listener?
piece.name
property, any idea? I checked skyra but their implementation looks more complicated than what I want to achieve.
```ts
import type { Events, TaskErrorPayload } from '#lib/types';
import { Listener } from '@sapphire/framework';...Better way of displaying an error response to the user for components? (this.none)
PaginatedMessage on a user-installed app inside a guild will return thisMazeWasNotMeantForYouContent
Questions to new API Implementation
get.ts
?
2. Following REST I want to create get, post, put etc routes for a specific slug e.g. birthday
. Do I need to create 4 separate files for this with each a different filename? this does not really look like an effective way?...How would I add the prisma client as property to the Augment.d.ts?
prisma generate
after reinstalling prisma dep haha
Roles being removed directly after being assigned
Accessing a public method in a listener's class