Get total bot without enabling GatewayIntentBits.GuildMember
Hi — is there any way to get the total number of bots in a Discord server without enabling GatewayIntentBits.GuildMembers? Right now I only have interaction.guild.memberCount to get total all member. Any suggestions?
15 Replies
I don't think that that's possible
because memberCount gives you human + bots
you don't have permission to know if they are member or bot without the GuildMember intent
You can’t
Just add it…
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
GatewayIntentsBits.GuildMembers…
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
They’re suggesting to just add the intent because it’s not possible otherwise
Is the approximate member count able to be retrieved from the guild object without the member intent?
That would include bots and users tho
I see. Misread the question as get member count without guild member intent
As a wise man once said, "it's time to live and let die." So let’s allow this thread to move into the graveyard
Sao lại muốn một thứ sinh ra để làm việc đấy không thực thi function đó? =)). Intents đấy là để interact với client mà
The thread owner has marked this issue as solved.