sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
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"
},
How to find the context responses of Identifiers
Identifiers.preconditionClientPermissionsNoPermissions
(or other Identifiers) to handle my own response, but i can't find it anywherehow to delete dropdown in PaginatedMessage?

utilities-store
this.container.utilities.<your thing>
. As per the readme example it would be this.container.utilities.sum.add(...)
. If you want to put raw strings in there use public class properties or getters.
So yes I suppose you're right. It's a bit of a niche thing for people who don't like many imports. I don't use it personally....api auth via expo
API Plugin Documentation is not up to date anymore
Dupliacte commands
Freeze on await client.login()
string-store & strings
.setCustomId(store.serialize(Id.EditSomethingButton, ...).toString())
, and when I just use a normal custom id, I have to do .setCustomId(Id.EditSomethingButton.toString())
. I know this isn't a very big problem; should I just suck it up? (...message kits
StoreRegistryEntries Augmentation
as <Class>
whenever I retrieve a command from container.stores.get('commands').get(commandName)
.Re-registering Command Within Scope of chatInputRun
Precondition results
Is it possible to add some sort of custom property to commands that can be checked in a precondition
requiredRoles: ['ADMIN','MODERATOR']
?