mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
added message update listening
This commit is contained in:
@@ -18,4 +18,10 @@ mybot.on("messageDelete", function(channel, message){
|
||||
|
||||
console.log("MESSAGE WAS DELETED BY " + ( message ? message.author.username : channel.name ));
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
mybot.on("messageUpdate", function(message, formerMessage){
|
||||
|
||||
console.log(message.author.username, "changed", formerMessage.content, "to", message.content);
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user