sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
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.nameproperty, 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
string-store input validation
Precondition variations
[['ModeratorOnly', 'EventStaffOnly'], 'BreakRoom'],
Means (ModeratorOnly || EventStaffOnly) && BreakRoom right?...crash when loading a autocomplete
string-store enum
uint8 :)Precondition doesn't return an error message