Added logic to save vc_state_update when changing channel #165

This commit is contained in:
2023-01-11 17:25:51 +01:00
parent 4c577f6a7b
commit 3abaee3e71
3 changed files with 4 additions and 2 deletions

View File

@@ -116,5 +116,7 @@ class BaseOnVoiceStateUpdateEvent(OnVoiceStateUpdateABC):
else:
self._logger.trace(__name__, f'User {member.id} switched to {after.channel}')
self._update_voice_state(False, member.id, before.channel.id, server)
self._update_voice_state(True, member.id, after.channel.id, server)
except Exception as e:
self._logger.error(__name__, f'Cannot handle voice state for user {member.id}', e)