-
Which package is this bug report for?discord.js Issue descriptionI have a command that creates a temporary queue for people to join but I want it to expire after X minutes (longer than the 15min webhook token expiration). To do this, I defer the reply and then use a setTimeout to expire the queue after X minutes. It works fine but because of the deferred reply, the command can't ping users or roles when it's meant to. Is there a workaround for this? I'm not sure why a deferred reply isn't able to ping roles/users.
Code sampleawait interaction.deferReply();
await interaction.editReply({
content: roleMention('roleId123456'),
allowedMentions: { parse: ['roles'] },
}); Versions
Issue priorityLow (slightly annoying) Which partials do you have configured?Not applicable Which gateway intents are you subscribing to?Guilds, GuildMembers, GuildMessages, MessageContent I have tested this issue on a development releaseNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think this is a standard Discord thing - message edits have never sent out new notifications. You might need to finish the defer, then use a followUp to ensure a new message is created and sends notifications. |
Beta Was this translation helpful? Give feedback.
I think this is a standard Discord thing - message edits have never sent out new notifications. You might need to finish the defer, then use a followUp to ensure a new message is created and sends notifications.