File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
lib/src/infrastructure/internals/packets/listeners Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,10 @@ final class VoiceJoinPacket implements ListenablePacket {
1919 );
2020 final before = await _marshaller.cache? .get (cacheKey);
2121
22- final rawVoiceState = await _marshaller.serializers.voice.normalize (
23- message.payload,
24- );
25- final voiceState = await _marshaller.serializers.voice.serialize (
26- rawVoiceState,
27- );
28-
2922 // Trigger VoiceJoinEvent whenever a user joins ANY channel (including moves)
30- if (message.payload['channel_id' ] != null &&
31- (before == null ||
32- before[ 'channel_id' ] != message.payload[ 'channel_id' ])) {
23+ if (message.payload['channel_id' ] != null && (before == null || before[ 'channel_id' ] != message.payload[ 'channel_id' ])) {
24+ final rawVoiceState = await _marshaller.serializers.voice. normalize (message.payload);
25+ final voiceState = await _marshaller.serializers.voice. serialize (rawVoiceState);
3326 dispatch (event: Event .voiceJoin, params: [voiceState]);
3427 }
3528 }
You can’t perform that action at this time.
0 commit comments