mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Client now reworks with PM
This commit is contained in:
@@ -27,6 +27,6 @@ myBot.on( "message", function( message ) {
|
||||
if ( message.content === "ping" ) {
|
||||
// Send a message ("pong") to the channel the message was sent in,
|
||||
// which is accessed by message.channel.
|
||||
this.sendMessage( message.channel, "pong" );
|
||||
this.sendMessage( message, "pong" );
|
||||
}
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user