add TODO note for voice key optimization

This commit is contained in:
Luna 2022-02-19 17:47:55 -03:00
parent 3d127b405f
commit e85e38ddb7
1 changed files with 3 additions and 0 deletions

View File

@ -887,6 +887,9 @@ class GatewayWebsocket:
# they CAN NOT enter two channels in a single guild.
# this state id format takes care of that.
#
# TODO voice_key should have a type as a 0th element to prevent
# code from having to call get_guild(id2).
voice_key = (self.state.user_id, state_id2)
voice_state = await self.app.voice.get_state(voice_key)