'How can I detect tag in discord.js
I want make my bot delete any tag that tag me, but it doesn't work. It work successful in random word but failed in tag such as <@id>.
bot.on("message", message => {
if (message.content.startsWith("")) { //what should I write in ""?
message.delete()
}
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
