mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Add MessageUpdate handling
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user