#Unable to mention users

1 messages · Page 1 of 1 (latest)

severe seal
#

My mentions dont "work"

#
// 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

dusky schooner
#

interaction.user.tag?

severe seal
#

tag shows Sadashi#discrim not a mention

dusky schooner
#

huh

#

try that instead

severe seal
#

dosent work, tried that alr

#

ill do it again tho

#

nope, didnt work again

simple sorrel
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
simple sorrel
#

hmm

severe seal
#

I've asked atleast 20 people over the span of a month, no fix yet

flat bloom
severe seal
#

So where tf do i ping them

#

i have a defer

#

which i cant remove

#

it needs to be there

#

the response takes time

flat bloom
#

followUp then @trim tapir does it?

trim tapir
#

Followup?

severe seal
#

what's that

trim tapir
#

It sends a new (followup) message

severe seal
#

should i delete the old one then

simple sorrel
#

interaction.followUp

severe seal
#

even a followup didnt work-

trim tapir
#

@trim tapir @severe seal asd

severe seal
#

should yes

flat bloom
severe seal
#

dude ik

trim tapir
#

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?

severe seal
#

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

flat bloom
#

For the followUp to work you‘d need to first editReply, because a followUp after deferReply calls editReply otherwise

severe seal
#

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

boreal skiff
severe seal
#

would need an editreply in between so that would make it an extra call

#

dont wanna add that cuz scaling stuff

boreal skiff
#

Nah it'll just say thinking:

  1. Defer
  2. Delete
  3. Followup
severe seal
#

Is there no fix for my current case? More like why does my case not work

flat bloom
#

It doesn’t work because you edit an already existing Message and that doesn’t mention members…

severe seal
#

But I'm editing a deferreply, so technicaly i didnt send a message or thats not how it works

flat bloom
#

A deferReply is a Message of special kind. But it’s a Message nonetheless

severe seal
#

Hmm, makes sense i guess

#

Im gonna have to do it without the defer am i correct then?