'Discord js <@userid> doesn't work correctly
I would like to know if its possible to tag user inside message.
For example:
msg.channel.send('display and tag user <@426369340> , thanks!').then(msg => {
})
And on bot message i get:
"display and tag user <@426369340> , thanks!"
I want:
"display and tag user @userName , thanks!"
Is it even possible ?
Solution 1:[1]
Yes, it is. Don't use <@userID>
, use <@!userID>
.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |