discord.js messageUpdate code example
Example: discord.js messageUpdate
client.on('messageUpdate', (oldMessage, newMessage) => {
//Your code
});
//Note, you have to define client.
//Its best to run these events through something called a "event handler"