mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
refactor: rename events to be consistent with WS names (#6010)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
@@ -89,7 +89,7 @@ const tests = [
|
||||
m => m.channel.send('Done!'),
|
||||
];
|
||||
|
||||
client.on('message', async message => {
|
||||
client.on('messageCreate', async message => {
|
||||
if (message.author.id !== owner) return;
|
||||
const match = message.content.match(/^do (.+)$/);
|
||||
if (match && match[1] === 'it') {
|
||||
|
||||
Reference in New Issue
Block a user