sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Scheduled Task Does Not Remove on Fail
Precondition not running
preconditions
folder, just the same
The log message is not my own.
2024-11-02 22:59:01 - [WARN] preconditionUnavailable - The precondition "OwnerOnly" is not available.
...Dilemma 😫
Paginated Message actions issue
Space separated arguments
messagePreParse
that allows spaces as separators and it ended up parsing options and flags way faster than default while still providing me the info I needed.After testing and finally feeling comfortable with it, I continued exploring Sapphire and added the subcommands package, quickly realizing they weren't compatible, as Subcommand's
PreParseReturn
only accepts types that extend from Args
and mine would return a different (simpler) kind of object.
So I've been dealing with this for a few days and I'm trying to figure out what would be the optimal approach as Lexure doesn't support spaces as a separator for options (I think?)....New component under a PaginatedMessage
Logger - log to txt file
console.log
logs to a txt file. Any way I can do the same for the sapphire logger as well? Thanks.
```ts
import * as fs from "fs";
...How can I delay the loading of pieces?
<SapphireClient>.login
? I'd like to login to the client, then wait for the resolving of an async function, and then load the pieces in._
or putting them in a directory that doesn't get automatically detected by Sapphire (i.e. a folder other than arguments
, commands
, etc) then use
```ts
import { container } from '@sapphire/framework';
container.stores.loadPiece({
name: 'name of the piece here',...Seeking Guidance on Custom Discord Bot for Voting System
Subcommand in Direct Messages even with guildIds option
{ guildIds: [this.container.config.guildId] }
in my subcommand registry, but I still can see command in direct messages with that bot[ERROR] Encountered error on event listener "CorePreChatInputCommandRun"
return this.error
commands arent working
registerContextMenuCommand type error
Argument of type 'ApplicationCommandType.User' is not assignable to parameter of type 'ContextMenuCommandType'.
This error appears on this line:
```ts
registry.registerContextMenuCommand(builder => builder.setName('Rob').setType(ApplicationCommandType.User));...ApplicationCommandType.User as ContextMenuCommandType
...Preconditioning a whole category of commands
PaginatedMessage actions on a single page
Sapphire Dynamic Cooldown Per User
Bun hot module reloading & starting in production with Sapphire
addStringOption applyLocalizedBuilder