Updated welcoem message and ready

imgbot
kieranrobson 2022-05-10 20:18:53 +01:00
parent d98071ce5b
commit 707f4d9b97
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ const discord = require('discord.js');
client.on('guildMemberAdd', async guildmember =>{
const guild = client.guilds.cache.get('427865794467069962');
const welcomechannel =client.channels.cache.get('427875246801027072')
if(guild == guildmember.guild.id )
{
welcomechannel.send(`<:hi:858281121611513897> Welcome! **${guildmember.user}** has just joined the server! Grab some roles from: `);

View File

@ -9,9 +9,9 @@ client.on('ready', () => {
const guild = client.guilds.cache.get('427865794467069962');
setInterval(() =>{
const memberCount = guild.members.cache.size;
const memberCount = client.guilds.cache.get('427865794467069962').memberCount
const channel = guild.channels.cache.get('906167542249308160');
channel.setName(`Discord Members: ${memberCount.toLocaleString()}`);
}, 600000);
}, 60000);
})