mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-11-22 12:33:38 +00:00
Voice: Add UserID to SpeakingData (#161)
This commit is contained in:
parent
42724e0b91
commit
de7d7f62a4
|
|
@ -107,9 +107,10 @@ const (
|
||||||
// OPCode 5
|
// OPCode 5
|
||||||
// https://discord.com/developers/docs/topics/voice-connections#speaking-example-speaking-payload
|
// https://discord.com/developers/docs/topics/voice-connections#speaking-example-speaking-payload
|
||||||
type SpeakingData struct {
|
type SpeakingData struct {
|
||||||
Speaking SpeakingFlag `json:"speaking"`
|
Speaking SpeakingFlag `json:"speaking"`
|
||||||
Delay int `json:"delay"`
|
Delay int `json:"delay"`
|
||||||
SSRC uint32 `json:"ssrc"`
|
SSRC uint32 `json:"ssrc"`
|
||||||
|
UserID discord.UserID `json:"user_id,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Speaking sends a Speaking operation (opcode 5) to the Gateway Gateway.
|
// Speaking sends a Speaking operation (opcode 5) to the Gateway Gateway.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue