'I'm getting "mention not defined" error when trying to pass v12 code to v13
I'm trying to pass a code from v12 to v13 and I get "mention not defined" error. I think it might be in that part bellow. Could someone tell me if this is on v13?
message.channel.send({content: `${mention === "@everyone" ? "`@everyone`" : `${mention === undefined ? '' : '`@' +mention.name+ '`'}`}`, embeds: [previewEmbed] }).then(delMsg => {
setTimeout(() => {
delMsg.delete()
}, 60000)
})
})
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
