sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Cog Actions
register
you can also call deregisgter
https://www.sapphirejs.dev/docs/Documentation/api-pieces/classes/StoreRegistry#deregister
Alternatively you can loop through all the stores held in the particular StoreRegistry (cog) and call store.unloadAll()
...Is there anyway using Subcommand plugin with Slash command
chatInputRun
is not exist on SubCommandReload Command
Vebose Child Folder not register slash command
registerApplicationCommands
Happen Issue when try to watch:start with examples
Type '"Rules"' is not assignable to type 'PreconditionEntryResolvable'.
Custom Hook before a Piece being called/run
beforeRun
hook where we can register custom function to be called. I'd imagine something like a middleware before the piece messageRun
or chatInputRun
being called. What I'm trying to do is to add a logger that is able to read the piece name and it's message/content. Currently doing it by adding the code right on the beginning of the run function, in which is not efficient and easy to forget.@sapphire/ts-config compiler options
Getting the HTTP status code of a @sapphire/fetch request
Register ChatInputCommand
guildIds
option to ['1076805694285680750']
it returns an error: ```ts
ExpectedConstraintError > s.string.regex
Invalid string format
Expected: expected /^[\p{Ll}\p{Lm}\p{Lo}\p{N}\p{sc=Devanagari}\p{sc=Thai}_-]+$/u.test(expected) to be true...Cannot find node_modules/@sapphire/type/prebuild/type-node-v115-linux-x64-glibc-2.37/type.node
Fetch Utility File Structure
Plugin API - Cookie Not Setting
Paginated messages page limit
Seeking for Guideline
Property 'run' in type 'ScheduledTaskErrorEvent' is not assignable to the same property in base type
public run(error: Error, task: string, _payload: unknown)
...Multiple CORS Origins
Ready Listener doesn't work
Register/delete guild commands on call
Bot doesn't trigger error events
throw new Error('You've got an error!');
) and an E500 (in this case checking a property of a null object)
I've added the
```...Events
constant we export.
Events.ChatInputCommandError
Events.ContextMenuCommandError
Events.MessageCommandError
and more...