mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add Rate Limiting, see hammerandchisel/discord-api-docs#20
This commit is contained in:
@@ -70,7 +70,7 @@ client.on('typingStop.', (channel, user, data) => {
|
||||
|
||||
client.on('message', message => {
|
||||
if (message.author.username === 'hydrabolt')
|
||||
message.channel.sendMessage('hydrabolt said: ' + message.content).then(console.log).catch(console.log);
|
||||
message.channel.sendMessage('hydrabolt said: ' + message.content).then(m => console.log(m.content)).catch(console.log);
|
||||
});
|
||||
|
||||
client.on('messageDelete', message => {
|
||||
|
||||
Reference in New Issue
Block a user