github.com/diamondburned/arikawa/v2@v2.1.0/discord/voice.go (about)

     1  package discord
     2  
     3  type VoiceState struct {
     4  	// GuildID isn't available from the Guild struct.
     5  	GuildID GuildID `json:"guild_id"`
     6  
     7  	ChannelID ChannelID `json:"channel_id"`
     8  	UserID    UserID    `json:"user_id"`
     9  	Member    *Member   `json:"member,omitempty"`
    10  	SessionID string    `json:"session_id"`
    11  
    12  	Deaf bool `json:"deaf"`
    13  	Mute bool `json:"mute"`
    14  
    15  	SelfDeaf   bool `json:"self_deaf"`
    16  	SelfMute   bool `json:"self_mute"`
    17  	SelfStream bool `json:"self_stream,omitempty"`
    18  	Suppress   bool `json:"suppress"`
    19  }
    20  
    21  type VoiceRegion struct {
    22  	ID         string `json:"id"`
    23  	Name       string `json:"name"`
    24  	VIP        bool   `json:"vip"`
    25  	Optimal    bool   `json:"optimal"`
    26  	Deprecated bool   `json:"deprecated"`
    27  	Custom     bool   `json:"custom"` // used for events
    28  }