Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to tell if member is a bot discord.py

import discord

@client.event
async def on_message(message):
  members = message.guild.members # also works with ctx.guild.members

  for member in members:
    if member.bot == True:
      print('Member is bot')
    else:
      print('Member is not bot')
 
PREVIOUS NEXT
Tagged: #member #bot
ADD COMMENT
Topic
Name
3+4 =