sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
message listeners stopped working in sapphire v4 on my bot
super.onLoad()
in your onLoad
method
```js
onLoad() {...Duplicate identifier 'Command'
Command
class from @sapphire/framework, it gives the error: Duplicate identifier 'Command'
Duplicate identifier 'Command'
Context menu commands not being registered
ApplicationCommandRegistry[report] Failed to update command Banish (<id>) DiscordAPIError[40041]: An application command with that name already exists
ApplicationCommandRegistry[report] Failed to update command Banish (<id>) DiscordAPIError[40041]: An application command with that name already exists
Is there a way to disable ApplicationCommandRegistries logs?
Context Menu Interactions Not Received
async contextMenuRun(interaction)
, but I do not think it's the problem with the function since the command does not even seem to be received (check screenshot). Anyone know how to fix this? Common troubleshooting for these types of issues would also be useful. Thanks!npm install @sapphire/framework@pr-590
fixes it for you tooChatInputCommandError Event not firing
What does commandError emit?
commandError
emits when fired by sapphire.Am I doing this wrong? I feel like I'm doing this wrong.
void interaction.reply(await resolveKey(interaction, "ping:success", { ping }))
because I'm using eslint and it is screaming Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.
void
. Is this a good way of handling the eslint error or is there a better one. resolveKey
is from @sapphire/plugin-i18next
and the eslint config is from @sapphire/eslint-config
....Button handler not triggering
/listeners
and changed the example's button ID with the one from
```ts
const buttonRow = new ActionRowBuilder<ButtonBuilder>().addComponents(
new ButtonBuilder()
.setCustomId("foo")...How to make auto idhints?
Issue on upgrade to v4
Namespace 'Command' has no exported member 'ChatInputInteraction'.
Namespace 'Command' has no exported member 'ChatInputInteraction'.
on this line.
```ts
public async chatInputRun(interaction: Command.ChatInputInteraction)...Dockerfile - CLI Template
23
+ 27-28
or just 27-28
?Subcommands Typings clashing after updating.
Send message to specific channel from slash command
Cooldown Message
What's the best way to watch for activity changes on a channel
message*
or voiceStateUpdate
events (based on channel type) to update in a database their last activity, and at the same time send an event to warn that a new activity has been detected and thus restart the counter before deleting.
However, an implementation like this one seems to me too heavy: retrieving each time the linked resource from the DB, updating it, always have a counter running, and that for each monitored channel....Set ApplicationCommandOption max value to be a function
Best way to make ButtonInteractions persistent after restarts?
build error
@types/node