View Source Nostrum.Struct.Event.SpeakingUpdate (Nostrum v0.10.0)
Struct representing a Nostrum-generated Speaking Update event
Nostrum will generate this event when the bot starts or stops playing audio.
Summary
Types
Id of the channel this speaking update is occurring in.
Current URL being played if a readable format.
Id of the guild this speaking update is occurring in.
Boolean representing if bot has started or stopped speaking.
Boolean representing if speaking update was caused by an audio timeout.
Types
@type channel_id() :: Nostrum.Struct.Channel.id()
Id of the channel this speaking update is occurring in.
@type current_url() :: String.t() | nil
Current URL being played if a readable format.
@type guild_id() :: Nostrum.Struct.Guild.id()
Id of the guild this speaking update is occurring in.
@type speaking() :: boolean()
Boolean representing if bot has started or stopped speaking.
@type t() :: %Nostrum.Struct.Event.SpeakingUpdate{ channel_id: channel_id(), current_url: current_url(), guild_id: guild_id(), speaking: speaking(), timed_out: timed_out() }
@type timed_out() :: boolean()
Boolean representing if speaking update was caused by an audio timeout.