alchemy v0.4.0 Alchemy.Voice
Contains the types and functions related to voice communication with discord.
Summary
Types
region :: %Alchemy.VoiceRegion{custom: Boolean, deprecated: Boolean, id: snowflake, name: String.t, optimal: Boolean, sample_hostname: String.t, sample_port: Integer, vip: Boolean}
Represents a voice region.
idRepresent the unique ID for this region.nameThe name of this region.sample_hostnameAn example hostname for the region.sample_portAn example port for the region.vipTrue if this is a vip-only server.optimalTrue for a single server that is closest to the client.deprecatedWhether this is a deprecated voice region.customWhether this is a custom voice region.
state :: %Alchemy.VoiceState{channel_id: snowflake, deaf: Boolean, guild_id: snowflake | nil, mute: Boolean, self_deaf: Boolean, self_mute: Boolean, session_id: String.t, suppress: Boolean, user_id: snowflake}
Represents the state of a user’s voice connection.
guild_idThe guild id this state is for.channel_idThe channel id this user is connected to.user_idThe id of the user this state belongs to.session_idThe session id for this voice state.deafWhether this user is deafened by the server.muteWhether this user is muted by the server.self_deafWhether this user is locally deafened.self_muteWhether this user is locally muted.suppressWhether this user is muted by the current user.