discordjs-support
Root Question Message
const Discord = require('discord.js')
const client = new Discord.Client()
client.on('guildMemberAdd', (member) => {
const welcomeChannelId = {
'1058088182861791282': '1058088182861791284'
}
const guild = client.guilds.cache.get("1058088182861791282")
member.guild.channels.cache.get(welcomeChannelId[member.guild.id]).send(`:wave: Welcome ${m} to **${guild}**! We are now at **${guild.memberCount} members**. Thank you for joining!`)
const MemberRoleAdd = member.guild.roles.cache.get('1058187823703916604')
member.roles.add(MemberRoleAdd)
})
.cache.get
which means that you're probably just not finding the channel or guild because it was never added to the cache. You should fetch the items you need