sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Combine Precondition and object available on the Command
BulkOverwrite usecase
Need help persisting interaction data between consecutive interactions in Sapphire
import { Collection } from 'discord.js'
, which is just an extension of native Map
btw) or externally through a fast caching service like Redis.
Either. way they are all key/value storages so keys will be customids/snowflakes/etc whatever you can use to identify later, and values whatever data you want....When do I need the runIn Option?
Cooldown
Setting autocomplete options based on other option's value
type
)'s choices are based on the value of another option (category
) within the same command.
When I first set the value of category
- which is a non-autocomplete string choice option - and I move to the autocomplete option type
it successfully populates its choices according to the value of category
. However, when I go back and change the value of category
to something else, then move to the type
option, the proper corresponding choices only populate correctly if I type at least one letter. If I do not, it populates it with the previously set of choices, corresponding to the first value set for category
.
I've attached a GIF that will hopefully help understand my issue. Thank you!...autocompleteRun for sub commands
autocompleteRun
for specific subcommands similar to how it is done for chatInputRun
?How can I bypass required user permissions?
parseConstructorPreConditionsRequiredUserPermissions
method so it adds an extended/custom precondition but that's my last resort since it feels hacky...Modal Validation Error
Get the value that was attempted to be parsed in an Arg
Make commands register when i run a command like `!sync`
registerApplicationCommands
)?
Also wondering if there's a way to make all commands "guild" commands instead of having to give guildIds
every time I register...confused
Is it possible to edit the default message returned by "preset preconditions"?
<CommandOptions.requiredClientPermissions>
returns I am missing the following permissions to run this command: Manage Channels
as the <UserError>.message
parsed in the ChatInputCommandDenied
listener, but I'd like it to return something else.Question
I'm not receiving any Context Menu Command interactions
loadMessageCommandListeners
also doesn't change anything
I'm using @sapphire/[email protected]
, [email protected]
and also ESM but I doubt that's relevant
lmk if I need to provide more details...__importStar is not defined
Fake Message Execution
extend command
Converted to es6 module, commands not loading
INFO - Logging in
INFO - logged in
INFO - ApplicationCommandRegistries: Initializing...
INFO - ApplicationCommandRegistries: Took 0ms to initialize.
INFO - Logging in
INFO - logged in
INFO - ApplicationCommandRegistries: Initializing...
INFO - ApplicationCommandRegistries: Took 0ms to initialize.
Is there anyway to register slash command for guild and global separately.