Merge pull request 'VoiceStateUpdate speichern nach channel wechsel #165' (#173) from #165 into 0.3.1
Reviewed-on: sh-edraft.de/kd_discord_bot#173 Reviewed-by: Ebola-Chan <nick.jungmann@gmail.com> Closes #165
This commit is contained in:
Submodule kdb-bot/docker updated: 48c2683965...6b25cc87fc
Submodule kdb-bot/src/bot/config updated: e6faabbd8b...9262f4f88f
@@ -116,5 +116,7 @@ class BaseOnVoiceStateUpdateEvent(OnVoiceStateUpdateABC):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
self._logger.trace(__name__, f'User {member.id} switched to {after.channel}')
|
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:
|
except Exception as e:
|
||||||
self._logger.error(__name__, f'Cannot handle voice state for user {member.id}', e)
|
self._logger.error(__name__, f'Cannot handle voice state for user {member.id}', e)
|
||||||
|
Reference in New Issue
Block a user