From de7d7f62a41000d98b56790413af7502fd42a68f Mon Sep 17 00:00:00 2001 From: Tyler Stuyfzand Date: Sun, 15 Nov 2020 04:37:56 -0500 Subject: [PATCH] Voice: Add UserID to SpeakingData (#161) --- voice/voicegateway/commands.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/voice/voicegateway/commands.go b/voice/voicegateway/commands.go index 51ff6f5..a3e1d94 100644 --- a/voice/voicegateway/commands.go +++ b/voice/voicegateway/commands.go @@ -107,9 +107,10 @@ const ( // OPCode 5 // https://discord.com/developers/docs/topics/voice-connections#speaking-example-speaking-payload type SpeakingData struct { - Speaking SpeakingFlag `json:"speaking"` - Delay int `json:"delay"` - SSRC uint32 `json:"ssrc"` + Speaking SpeakingFlag `json:"speaking"` + Delay int `json:"delay"` + SSRC uint32 `json:"ssrc"` + UserID discord.UserID `json:"user_id,omitempty"` } // Speaking sends a Speaking operation (opcode 5) to the Gateway Gateway.