Message fetching
I have this function which edits a message anytime it is called, or re-sends it if it was deleted. I have noticed that when I restart the bot, it won't recognize the message and resend it, then start editing the new message. What is the cause of this and how can I fix it?
2 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
fetch the message using
channel.messages.fetch(id)
and handle the promise