sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Piece not loading when stores.register() is called
container.stores.registerPath()
to set up the path, followed by await container.stores.load();
to load the pieces.what are these
Permission check in other guild
Registering multiple paths for pieces
EMPTY_MODULE
parseConstructorPreConditionsCooldown
when extending class Command?
I want to create that class as my base class command and make it a plugin that I'm going to use on my other projects.
I get the error when debugging why my class is identified as Empty_Module
...@sapphire/plugin-scheduled-tasks fails completely
@sapphire/plugin-scheduled-tasks
so I made a test script based off the documentation on the Github page. I rewritten the script in commonjs as I use that instead of ts. It does does not work well. It immediately fires instead of the duration as specified, it also doesn't pass any payload variables specified. Would I happen to be doing something wrong?
# The console output, which is empty
Iran {}
# The console output, which is empty
Iran {}
this.container.tasks.create({ name: 'name', payload: { huilde: member.guild, member }}, { delay: 9999999999 })
Global preconditions position seems to be broken
Snowflake.deconstruct return incorrect value
DiscordSnowflake.deconstruct(message.id).timestamp
) but it returns me incorrect value - message has been sent at 3:32 UTC and this code returns 1722023722053
Overriding default permission precondition
Event before precondition OR access the command via MessageCommandDenied
shouldDeleteOnPost
- which should delete the message once it has been posted.
I'd like to do this in the most universal way possible - I thought using MessageCommandRun
would have fired before any of the preconditions, but it seems it does not.
...PreMessageCommandRun
- though still open to feedback about whether this is the best possible place for it
```ts
import { Events, Listener, ListenerOptions, PreMessageCommandRunPayload } from "@sapphire/framework";
...Multiple guilds
Bulk upgrade commands to remove unregistered ones
Compilation Errors in Dependencies
tsc
to build the bot I get many errors.
```ts
node_modules/@sapphire/result/dist/cjs/index.d.cts:832:5 - error TS2416: Property 'isOkAnd' in type 'ResultOk<T>' is not assignable to the same property in base type 'IResult<T, any>'.Type '<R extends boolean>(cb: (value: T) => R) => R' is not assignable to type '<R extends boolean>(cb: (value: T) => R) => this is ResultOk<T> & R'....
manual task compiler error
this.container.tasks.create({ name: 'delete-message', payload: { message } }, { delay: offset })
this.container.tasks.create({ name: 'delete-message', payload: { message } }, { delay: offset })
Errors loading Commands and Listeners on bun run
bun run
, receive errors for each command and listener created.
Here the following error:
```bash
Error when loading '/home/thrump/projects/botc/src/commands/createChannel.ts': 9 | LoaderErrorType2["UnknownStore"] = "UNKNOWN_STORE";..."main"
in the package.json to the src/index.js, so in my head i assumed it needed to point to my src/index.ts
. but i guess based off the outDir in the tsConfig, have to point to dist/index.js
...Hide Slash/Context menu commands
how would i know if a certain precondition is in a command?
Crosspost listener not working
can i use preconditions in listeners
Listeners not registering?