mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
Prepare examples for v12 (#1382)
This commit is contained in:
@@ -26,7 +26,7 @@ client.on('guildMemberAdd', member => {
|
||||
const channel = client.channels.get(channelID);
|
||||
|
||||
// send the message, mentioning the member
|
||||
channel.sendMessage(`Welcome to the server, ${member}!`);
|
||||
channel.send(`Welcome to the server, ${member}!`);
|
||||
});
|
||||
|
||||
// log our bot in
|
||||
|
||||
Reference in New Issue
Block a user