- Subscribe to voice events when joining a voice room

This commit is contained in:
Triggerhapp 2020-10-17 22:41:37 +01:00
parent 1bd27b2506
commit bac4131a0e

View file

@ -63,6 +63,7 @@ class DiscordConnector:
cn = self.channels[channel]['name']
logging.info(
"Joined room: %s" % (cn))
self.sub_voice_channel(channel)
self.current_voice = channel
if need_req:
self.req_channel_details(channel)
@ -201,7 +202,7 @@ class DiscordConnector:
self.set_in_room(j["data"]["user"]["id"], False)
if j["data"]["user"]["id"] == self.user["id"]:
self.in_room = []
self.sub_all_voice()
#self.sub_all_voice()
else:
un = j["data"]["user"]["username"]
elif j["evt"] == "SPEAKING_START":