Hello I'm trying to code a bot with discord.py to notify my discord server when I'm in stream, but I don't know how to do it. Can anyone help me?
Thanks
@bot.event
async def on_voice_state_update(member, prev, cur):
if prev.channel and cur.channel:
if prev.self_stream != cur.self_stream:
print("User's self-stream updated!")
on_voice_state_update
, you can useon_member_update
. – MrSpaar