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