mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Prepare examples for v12 (#1382)
This commit is contained in:
@@ -22,7 +22,7 @@ client.on('message', message => {
|
||||
// if the message is "ping",
|
||||
if (message.content === 'ping') {
|
||||
// send "pong" to the same channel.
|
||||
message.channel.sendMessage('pong');
|
||||
message.channel.send('pong');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user