From 707f4d9b9755c2ebf8796cc16f94450449438681 Mon Sep 17 00:00:00 2001 From: kieranrobson Date: Tue, 10 May 2022 20:18:53 +0100 Subject: [PATCH] Updated welcoem message and ready --- events/guildMemberAdd.js | 2 +- events/ready.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/events/guildMemberAdd.js b/events/guildMemberAdd.js index 526031e..4bb3a50 100644 --- a/events/guildMemberAdd.js +++ b/events/guildMemberAdd.js @@ -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: `); diff --git a/events/ready.js b/events/ready.js index e437319..5100c69 100644 --- a/events/ready.js +++ b/events/ready.js @@ -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); })