mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
Updated deleted and update message listeners
This commit is contained in:
11
lib/index.js
11
lib/index.js
@@ -17,6 +17,17 @@ a.on("message", function (m) {
|
||||
});
|
||||
});
|
||||
|
||||
a.on("messageUpdated", function(newm, oldm){
|
||||
if(oldm){
|
||||
a.sendMessage(oldm, `woah! ${newm.author} changed their message! how rude`)
|
||||
}
|
||||
})
|
||||
a.on("messageDeleted", function(oldm){
|
||||
if(oldm){
|
||||
a.sendMessage(oldm, `woah! ${oldm.author} deleted their message! how rude`)
|
||||
}
|
||||
})
|
||||
|
||||
a.login(process.env["discordEmail"], process.env["discordPass"])["catch"](function (e) {
|
||||
return console.log(e);
|
||||
});
|
||||
Reference in New Issue
Block a user