From cd1a044bc8ccad8a8cb88166e244f3d54d0a38b0 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Wed, 7 Dec 2022 00:24:57 -0800 Subject: [PATCH] voice: Fix voicegateway.SpeakingFlag being invalid Thanks, @topisenpai! --- voice/voicegateway/events.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/voice/voicegateway/events.go b/voice/voicegateway/events.go index eef6377..76299c5 100644 --- a/voice/voicegateway/events.go +++ b/voice/voicegateway/events.go @@ -76,9 +76,10 @@ type SessionDescriptionEvent struct { // https://discord.com/developers/docs/topics/voice-connections#speaking type SpeakingFlag uint64 +const NotSpeaking SpeakingFlag = 0 + const ( - NotSpeaking SpeakingFlag = 0 - Microphone SpeakingFlag = 1 << iota + Microphone SpeakingFlag = 1 << iota Soundshare Priority )