JaBa/events/messageUpdate.js

10 lines
203 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;
2022-01-03 23:20:33 +05:00
this.client.emit("messageCreate", newMessage);
2021-12-10 21:39:54 +05:00
}
};