mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
Add MessageCreate handler, set up Message class and add ability to Cache messages
This commit is contained in:
@@ -66,3 +66,7 @@ client.on('typingStop.', (channel, user, data) => {
|
||||
if (user.username === 'hydrabolt')
|
||||
console.log(user.username, 'stopped typing in', channel.name, 'after', data.elapsedTime + 'ms');
|
||||
});
|
||||
|
||||
client.on('message', message => {
|
||||
console.log(message.author.username, 'said', message.content, 'in', message.channel.name);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user