@client.event
async def on_voice_state_update(member, before, after):
if before.channel is None and after.channel is not None:
#Вот тут проверить микрофон
class discord.VoiceState
Represents a Discord user’s voice state.
deaf
bool – Indicates if the user is currently deafened by the guild.
mute
bool – Indicates if the user is currently muted by the guild.
self_mute
bool – Indicates if the user is currently muted by their own accord.
self_deaf
bool – Indicates if the user is currently deafened by their own accord.