sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Error [EMPTY_MODULE]: A compatible class export was not found.
Extra
: and inside you will have the index.js
file (which will have the listener ready )and will have another file that will have "channels.js
" where you will publish the function and a "functions.js
" that will be in charge of making some canvas images.
...How to reset the command cooldown in JS
this.container.stores.get('preconditions').get('Cooldown').buckets.delete(this);
this.container.stores.get('preconditions').get('Cooldown').buckets.delete(this);
Logic question
![No description](https://cdn.answeroverflow.com/1248486624275337287/Untitled-2024-05-20-2058.png)
presenceUpdate require member cache?
listener not loading.
![No description](https://cdn.answeroverflow.com/1248174921788555296/image.png)
Precondition not throwing errors.
Equivalent of z.function from zod in shapeshift?
.run(data: unknown): Result
: https://github.com/sapphiredev/shapeshift/#rundata-unknown-resultt-error-given-a-validation-you-can-call-this-method-to-check-whether-or-not-the which returns a Result
on which you can call .isOk()
/ isErr()
/ .unwrap()
...Property 'getUser' does not exist
![No description](https://cdn.answeroverflow.com/1247395985815240815/image.png)
Validation error in `SlashCommandBuilder.addSubcommand`
![No description](https://cdn.answeroverflow.com/1246862584460738620/image.png)
Decorator issue
"experimentalDecorators": true,
as part of my tsconfig - everything I've seen so far suggests adding that. ...DurationFormatter
5d 21h 45m 12s
but not this 5 days 21 hours 45 minutes 12 seconds
i use this: new DurationFormatter().format(some duration)
...sapphire not acknowledging chat input commands?
can we add a string to the command content response by PreMessageContentRun ?
How do I force a user to specify at least one input?
Any common guideline for making plugins?
Plugin
and define the hook functions. Later on registering the hooks to the SapphireClient
instance. My code roughly looks like this
```ts...Just updated to 5.2.1 nothing working and no errors
![No description](https://cdn.answeroverflow.com/1242872755183943690/image.png)
Subcommand groups
@sapphire/type Issues
@sapphire/type
I'm given the error below (please see the attached image) and I had initally thought it was an error with me not having node-gyp installed (I do, and have verified it, I've uninstalled the XCode Developer tools and reinstalled just to make sure it wasn't that as well), since I had searched and attempted to troubleshoot before making a thread, however, upon closer inspection, it would appear that it's attempting to fetch a release that isn't there. I do apologize if I've missed something important, if that's the case, I was unable to find it and I am once again, highly sorry. Thank you for taking the time to read this :D
Additional Information
NodeJS Version: v20.23.1
Package Manager: pnpm...![No description](https://cdn.answeroverflow.com/1242741872057651231/YDpDQgL.png)