#Unable to mention users
1 messages · Page 1 of 1 (latest)
// client
const client = new Client({
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_MEMBERS],
allowedMentions: { parse: ["users", "roles", "everyone"] }
});
// code
await interaction.deferReply()
await interaction.editReply({
content: interaction.user.toString(),
embeds: [embed],
components: components,
fetchReply: true,
allowedMentions: {parse: ["users"]} // also tried users: [userid]
})```
Help please
interaction.user.tag?
tag shows Sadashi#discrim not a mention
show me the code tht includes this @severe seal
const prompts = await interaction.editReply({
content: `<@${interaction.user.id}>`,
embeds: [embed],
components: components,
fetchReply: true,
allowedMentions: {parse: ["users"]}
})```the embed is a prompt thing, components is a yes/no button
hmm
I've asked atleast 20 people over the span of a month, no fix yet
An edit of a Message doesn’t ping
So where tf do i ping them
i have a defer
which i cant remove
it needs to be there
the response takes time
followUp then @trim tapir does it?
Followup?
what's that
It sends a new (followup) message
should i delete the old one then
interaction.followUp
even a followup didnt work-
Shouldn't it highlight the message for the mentioned user anyways?
@trim tapir @severe seal asd
should yes
Does it, check my message
Yes It does, it might not send a notification tho.. But the message should get highlighted, edit or not. Unless something changed and only for bots
EDIT: so it's a webhook issue/limitation then?
Ive been making bots for like 3 years now
and this one mention thing is ruining my life
Well so idk why the fuck but removing the defer works
im just gonna hope the bot never takes more than the "no response" times
For the followUp to work you‘d need to first editReply, because a followUp after deferReply calls editReply otherwise
Update:
I really cant have my bot switch to without deferreply
without deferreply my mentions work
but I need a deferreply since sometimes it takes upto 10 seconds
and in that case the mentions dont work
Idk anymore what to do
What about a defer, then a followup and delete the original?
would need an editreply in between so that would make it an extra call
dont wanna add that cuz scaling stuff
Nah it'll just say thinking:
- Defer
- Delete
- Followup
Is there no fix for my current case? More like why does my case not work
It doesn’t work because you edit an already existing Message and that doesn’t mention members…
But I'm editing a deferreply, so technicaly i didnt send a message or thats not how it works
A deferReply is a Message of special kind. But it’s a Message nonetheless