I've been struggling with it a bit and I can't think of anything. Namely, I need to get the id
of the message (embed) sent by the bot and save it as a parseInt()
variable. I have no idea how to do it, and my attempts so far ended in failure. Below is my code and console logs.
[code...]
let msgID = parseInt()
msg.channel.send(smnyEmbed).then(e => {
console.log(e.id)
msgID = e.id
})
console.log(msgID)
Logs:
NaN <- msgID
82243920***9184779 <- e.id