Answer the question
In order to leave comments, you need to log in
How to count the number of bots on the server?
You need to count the number of all bots on the Discord server. Python. How many tried, but the bot considers only itself
for i in ctx.guild.members:
if i.bot:
bots +=1
Answer the question
In order to leave comments, you need to log in
What intents were passed when creating the bot? Most likely there are no necessary
https://discordpy.readthedocs.io/en/stable/intents.html
At least guild, messages and members are needed.
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix='!', intents=intents)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question