I am writing a discordbot bot the function user.bot isnt working correctly
@client.event
async on_reaction_add(reaction, user):
if not user.bot:
await client.wait_until_ready()
try:
channel = client.get_channel(welcome_channel_id)
try:
await channel.send(message)
await reaction.remove(user)
except Exception as e
raise e
except Exception as e
raise e
Everything works accept the if statement, I create a message with a reaction with a bot but the bots reaction is removed. I am using Python 3.8. If u need any extra information pls tell me.
reaction.remove()sure does sound like something that removes a reaction, right?if not user.bot: