AlphaMinedime
AlphaMinedime
SIASapphire - Imagine a framework
Created by AlphaMinedime on 1/3/2023 in #discordjs-support
yO mY bOt HaS gLoBaL cOmMaNdS bUt I dOnT hAvE sUpPoRtS cOmMaNdS bAdGe
yO mY bOt HaS gLoBaL cOmMaNdS bUt I dOnT hAvE sUpPoRtS cOmMaNdS bAdGe
22 replies
SIASapphire - Imagine a framework
Created by AlphaMinedime on 12/30/2022 in #discordjs-support
My Welcome Message And Auto Role Doesn't Work
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)
})
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)
})
23 replies