-
Notifications
You must be signed in to change notification settings - Fork 35
/
voice_state.go
35 lines (30 loc) · 1.29 KB
/
voice_state.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package discord
import (
"time"
"github.com/disgoorg/disgo/json"
"github.com/disgoorg/snowflake/v2"
)
// VoiceState from Discord
type VoiceState struct {
GuildID snowflake.ID `json:"guild_id,omitempty"`
ChannelID *snowflake.ID `json:"channel_id"`
UserID snowflake.ID `json:"user_id"`
SessionID string `json:"session_id"`
GuildDeaf bool `json:"deaf"`
GuildMute bool `json:"mute"`
SelfDeaf bool `json:"self_deaf"`
SelfMute bool `json:"self_mute"`
SelfStream bool `json:"self_stream"`
SelfVideo bool `json:"self_video"`
Suppress bool `json:"suppress"`
RequestToSpeakTimestamp *time.Time `json:"request_to_speak_timestamp"`
}
type CurrentUserVoiceStateUpdate struct {
ChannelID *snowflake.ID `json:"channel_id,omitempty"`
Suppress *bool `json:"suppress,omitempty"`
RequestToSpeakTimestamp *json.Nullable[time.Time] `json:"request_to_speak_timestamp,omitempty"`
}
type UserVoiceStateUpdate struct {
ChannelID *snowflake.ID `json:"channel_id,omitempty"`
Suppress *bool `json:"suppress,omitempty"`
}