JaBa/events/messageUpdate.js

10 lines
197 B
JavaScript
Raw Normal View History

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