sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Slash command and Unknown interaction
rawError: { message: 'Unknown interaction', code: 10062 }
whenever the user tries to click on a button of any of both messages.
For me looks like somehow the ActionRow is not correctly attached to the Embed (doesn't make much sense since I create the actionRow inside chatInputRun method every time, so it should be correctly scoped).
I can provide more information if needed, can someone help me? 🙂 ❤️...- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)
- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)
Create locale slash commands
create modal
I have issues with TypeScript
Argument of type '"Staff"' is not assignable to parameter of type 'SimplePreconditionKeys | Simpl...
Autocomplete `interaction.commandName` when used in a subcommand
interaction.commandName
in an autocomplete interaction handler when the invoking interaction came from a subcommand or a subcommand in a group? Is it just baseCommand subCommand
and baseCommand group subCommand
? On a similar note, does interaction.commandId
change for each subcommand?commandName
property on the interaction that gets passed into the interaction handler just the subcommand name then or is it the parents? At this point, you've said both.Disable And/Or Change Listeners Directory
listeners
directory, you will need a file called .sapphirerc.json
and in there put this:
this is just an example
```json...TypeError: Cannot read properties of undefined (reading 'write')
Dynamic route not working
Error When trying to getString.
ChatInputCommandDenied listener not working
Slash Command User Arg Always Failing
check if commands initialized
Whats the difference between the different imports?
Handling deletion of all guild specific slash commands with BulkOverwrite
ApplicationCommandRegistryRegisterOptions
to specify an array of guildIds
to create guild specific commands with registerChatInputCommand
. This works great as long as I have at least one guild specific command for a guild.
The issue is when II remove a guild id from all the command ApplicationCommandRegistryRegisterOptions
then it won't overwrite anything in that guild and so it doesn't delete the removed commands.
Below I've included an example of two commands. Assume that previously both commands were registered for guilds ['111','222','333'] specifically. If I make an update to remove guild '222' from the Help Command and guild '333' from both the Ping and Help Command, then guild '222' will properly delete the Help Command, however guild '333' will not be updated and keep both the Help and Ping Command....User counts
client.users.cache.size
(but this does not have all users included and i don't want to client.users.fetch()
a lot)
- Fetching every guild and using guild.approximateMemberCount
while removing duplicates...