Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. bot.on('guildMemberAdd', member => {
  2. const channel = member.guild.channels.find(ch => ch.name === 'welcome')
  3. // Change 'Channel-Name' to whatever channel you want the welcome message to be in!
  4. const embed = new RichEmbed()
  5. //This is where you start writing your embed, I will include as many features as I can in this!
  6. .setAuthor("Welcome Bot")
  7. .setTitle(`Welcome to <name>, Official Discord, ${member.displayName}!`)//This will be the second line below .setAuthor, This will say "Welcome to *Server Name*, *Name of person who joined*"
  8. .setColor('#cc0000')//This is the color of the bar that is going to be on your embed, You only want to change the part after `0x`. The Colors are in Hex code. If I were to change it from the Coral Red to Teal i would change it from .setColor(0xF08080) to .setColor(0x008080)
  9. .setDescription(`Welcome to <server>, ${member.displayName}`)//This a gray box that would be like normal discord text, You can use the markup language like ```Message``` or ``Message``, ectetera
  10. .setURL()//When you have this set, You can click on the .setTitle & it will take you to the link set!
  11. .setImage('')
  12. //)//This is going to be the Image underneath the Embed, I'm going to be using an example image for this Embed, Give me a second to check my files..
  13. .addBlankField(true)//This line is a boolean so it's either ``true`` or ``false``, If you dont want the blank field, Just remove the line.
  14.  
  15. if (!channel) { return } else {//This is basically saying: If it finds ch.name
  16. channel.send({embed})//it will return with this embed
  17. }});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement