Add MessageUpdate handling

This commit is contained in:
hydrabolt
2016-04-18 18:12:57 +01:00
parent d437fd31cf
commit 00327a5776
5 changed files with 75 additions and 1 deletions

View File

@@ -75,3 +75,8 @@ client.on('message', message => {
client.on('messageDelete', message => {
console.log('Message deleted by', message.author.username);
});
client.on('messageUpdate', (old, message) => {
if (message.author.username === 'hydrabolt')
console.log('Message updated from', old.content, 'to', message.content);
});