I'm using 5.0.0 latest and the statement I'm using works to a point
(This is also tested with and without interactions.ext.jurigged)
@listen()
async def on_voice_user_mute(event: VoiceUserMute):
if event.author.id == bot.owner.id:
print(event.author.mute) #get state of event (True of False) debug line
if event.author.mute == True:
await req_light(3) # Change to Blue
else:
await req_light(1) # Change to Red
The event triggers correctly when the user mutes and un-mutes, but the line below to get the bool state it always returns False even if the user is muted.
print(event.author.mute)
any further insight into how to get this to detect the mute state of the user would be welcome