Editing a message deletes it

To explain my system. I have a music bot that some events trigger certain message edits. Upon a user playing a song, an embed with buttons get sent (pic 1) this message gets stored within Guild class I extended with types. upon clicking one of the buttons, the message gets edited with new information. For example if someone pauses the song the button changes to another button. But the problem with that is that, upon editing the message. It deletes it. Pictures besides 1st one, show the code pretty much. 2nd pic shows how i store the message and what happens when a track starts playing 3rd pic shows whath what happens when player gets resumed (same thing happens with pausing or any event that edits the message stored)
No description
No description
No description
Stealth
Stealth27d ago
To add to it, after editing the message, it emits messageDeleted event within api for some reason (probably because it does delete the message)