Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Future Proof Welcome Message & DM
  • Loading branch information
brennondenny committed May 7, 2018
commit 79218f3e00462210b6727ee85a6bbcda12ec2f9d
4 changes: 2 additions & 2 deletions bot/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ client.on('ready', () => {
// Message for new users
client.on('guildMemberAdd', (member) => {
// Send Direct Message with Terms of Service
member.sendMessage(`Welcome ${member.user.username} to the Full Sail Armada! Read our Terms of Service`);
member.send(`Welcome ${member.user.username} to the Full Sail Armada! Read our Terms of Service`);
// Send Welcome User Message in the General Channel
member.guild.channels.find('name', 'general').sendMessage(`Welcome ${member.user.username} to the Full Sail Armada!`);
member.guild.channels.find('name', 'general').send(`Welcome ${member.user.username} to the Full Sail Armada!`);
});

// Listen for messages
Expand Down