TypeError: Cannot read property 'guild' of undefined I'm writing a welcome code but I keep getting that error

const db = require('quick.db')
const Discord = require('discord.js')

module.exports = (client) => {
  
  
    client.on('guildMemberAdd', (member, message) => {
     
        let welcomechannel = db.get(`welcome_${message.guild.id}`)
        let welcomemsg = db.get(`Welcomemsg_${message.guild.id}`)
  
       if(welcomechannel = null || undefined) return
   
        if(welcomemsg = null || undefined) welcomemsg = `Hey <@${member.id}>! Make sure to read the rules and have a great time!`

        let embed = new Discord.MessageEmbed()
        .setColor('GOLD')
        .setDescription(welcomemsg)


        welcomechannel.send(embed)
 

    })
  }

222 thoughts on “TypeError: Cannot read property 'guild' of undefined I'm writing a welcome code but I keep getting that error”

  1. Pingback: sildenafil citrate
  2. Pingback: purchase cialis
  3. Pingback: order cheap cialis
  4. Pingback: viagra online
  5. Pingback: viagra cheap
  6. Pingback: sildenafil 20 mg
  7. Pingback: cheap viagra
  8. Pingback: sildenafil otc us
  9. Pingback: viagra cost panama
  10. Pingback: generic tadalafil
  11. Pingback: sildenafil generic
  12. Pingback: order viagra
  13. Pingback: viagra cialis
  14. Pingback: viagra tablets
  15. Pingback: compra viagra
  16. Pingback: women viagra
  17. Pingback: viagra en ligne
  18. Pingback: viagra pornhub
  19. Pingback: generic for viagra
  20. Pingback: viagra or cialis
  21. Pingback: sildenafil prices

Leave a Comment