kilbouri/crewbot

Fix error when user leaves voice channel

Opened this issue · 1 comments

{"level":30,"time":1698460539367,"pid":25,"hostname":"060f4bc52dad","msg":"<@212016618727931904> left the game in <#762824651939250256>"}
{"level":50,"time":1698460539558,"pid":25,"hostname":"060f4bc52dad","msg":"Failed to handle 'userLeftVoice' event: DiscordAPIError[40032]: Target user is not connected to voice."}

Occurs every time someone leaves VC

Best guess, this occurs because the bot is trying to reset the user's voice state. We can just remove that functionality, assuming this error is indicating that the update doesn't work AND when users rejoin they aren't still muted/deafened.