How would I make a bot do something (like send a message) when a user first joins the a discord server?
I've been looking all over for a hint as to how to do that...
c.on('serverNewMember',(x,y)=>{
if(x === c.servers.get('id',"SERVERID"))
c.sendMessage(x.channels.get('name','general'),"Welcome to my Server "+y.mention()+"!")
})
Most helpful comment