mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
MessageDelete handling
This commit is contained in:
@@ -68,5 +68,10 @@ client.on('typingStop.', (channel, user, data) => {
|
||||
});
|
||||
|
||||
client.on('message', message => {
|
||||
if (message.author.username === 'hydrabolt')
|
||||
console.log(message.author.username, 'said', message.content, 'in', message.channel.name);
|
||||
});
|
||||
|
||||
client.on('messageDelete', message => {
|
||||
console.log('Message deleted by', message.author.username);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user