EddieTheCubeHead / accord.py

Testing library for the discord.py discord library
MIT License
1 stars 0 forks source link

discord.py on_member_update not working #8

Open Bettinick opened 10 months ago

Bettinick commented 10 months ago

Hi, i have a problem with my Code. The method async def on_member_update() is not working. I'm using Python 3.9 and discord.py Version 2.3.2. Can someone help me with my problem?

--This is my Code-- import discord

intents = discord.Intents.default() intents.message_content = True intents.members = True intents.presences = True

class MyClient(discord.Client): async def on_ready(self): print("logged in")

async def on_member_join(self, member):
    pass

async def on_member_remove(self, member):
    pass

async def on_member_update(self, before, after, message):
    print("test")
    print(str(before.desktop_status))
    await message.channel.send("test")

bot = MyClient(intents=intents)

nky001 commented 9 months ago

The on_member_update event should take only two parameters (before and after), not three (before, after, and message)