Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to hthe amount of users online in discordjs

// Get our server
const guild = bot.guilds.get('388093207575134208');

// Get our stats channels
const totalUsers = bot.channels.get('470358845751951361');
const onlineUsers = bot.channels.get('470366354222874665');
const codeMonkeys = bot.channels.get('470358906225295391');


var userCount = guild.memberCount;
var onlineCount = guild.members.filter(m => m.presence.status === 'online').size
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #hthe #amount #users #online #discordjs
ADD COMMENT
Topic
Name
4+6 =