feat(core): automatically leave voice channel when empty

This commit is contained in:
2025-01-03 00:01:08 -05:00
parent 409373ee27
commit 92a0eee92c
3 changed files with 24 additions and 1 deletions

View File

@@ -28,3 +28,12 @@ async def on_message(message):
await events.trigger_dynamic_handlers("on_message", message)
await core.on_message(message)
@client.event
async def on_voice_state_update(member, before, after):
await events.trigger_dynamic_handlers(
"on_voice_state_update", member, before, after
)
await core.on_voice_state_update(member, before, after)