Open Bettinick opened 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)
The on_member_update event should take only two parameters (before and after), not three (before, after, and message)
on_member_update
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")
bot = MyClient(intents=intents)