JaBa/events/messageUpdate.js

10 lines
199 B
JavaScript
Raw Normal View History

2021-12-10 21:39:54 +05:00
module.exports = class {
constructor (client) {
this.client = client;
}
async run (oldMessage, newMessage) {
if (!newMessage.editedAt) return;
this.client.emit("message", newMessage);
}
};