sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
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
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
How to get name&description (default and localized)?
container.stores.get('commands')
, but I don't want to use decorators. Also, I want to get to the localized variants of the name&description. Any ideas how to do it except for adding i18n sapphire plugin or it's the only option?MikroORM with Sapphire (AsyncLocalStorage)
Use precondition on subcommands
Skipped piece
[Trace] -> [structures/EClient.js] [STORE => listeners] [LOAD] Skipped piece 'C:\Users\Des\Desktop\kannabot-v2\dist\listeners\giveaways\giveawayReactionAdded.js.map' as 'LoaderStrategy#filter' returned 'null'.
[Trace] -> [structures/EClient.js] [STORE => listeners] [LOAD] Skipped piece 'C:\Users\Des\Desktop\kannabot-v2\dist\listeners\giveaways\giveawayReactionAdded.js.map' as 'LoaderStrategy#filter' returned 'null'.
Sapphire does not load any folders
/src
folder haven't been loaded for unknown reason
extendedpaginatedmessage
Object.defineProperty(this, 'maximumPageAmount', { value: 100 });...
export class ExtendedPaginatedMessage extends PaginatedMessage {
public maximumPageAmount = 100;
}
export class ExtendedPaginatedMessage extends PaginatedMessage {
public maximumPageAmount = 100;
}
How to transpile TypeScript using Bun?
bun build
command.bun start
in package.json: "scripts": {
"start": "bun src/index.ts"
},
"scripts": {
"start": "bun src/index.ts"
},