Module twitch_irc::message
source · [−]Expand description
Generic and Twitch-specific IRC messages.
Structs
A single Twitch “badge” to be shown next to the user’s name in chat.
Timeout, Permaban or when a chat is entirely cleared.
Message for when a single message is deleted from chat.
A single emote, appearing as part of a message.
Sent once directly after successful login, containing properties for the logged in user.
A protocol-level IRC message, with arbitrary command, parameters, tags and prefix.
A map of key-value IRCv3 tags.
Message received when you successfully join a channel.
A user-facing notice sent by the server.
Message received when you successfully leave (part) a channel.
A
PING connection-control message.A
PONG connection-control message.A regular Twitch chat message.
An RGB color, used to color chat user’s names.
Sent by the server to signal a connection to disconnect and reconnect
Sent when a channel is initially joined or when a channel updates it state.
Additionally present on
giftpaidupgrade and anongiftpaidupgrade messages
if the upgrade happens as part of a seasonal promotion on Twitch, e.g. Subtember
or similar.Set of information describing the basic details of a Twitch user.
A Twitch
USERNOTICE message.Sent when you join a channel or when you successfully sent a
PRIVMSG message to a channel.A incoming whisper message (a private user-to-user message).
Enums
One of the three types of meaning a
CLEARCHAT message can have.Specifies the followers-only mode a chat is in or was put in.
Error while parsing a string into an
IRCMessage.A “prefix” part of an IRC message, as defined by RFC 2812:
An IRCMessage that has been parsed into a more concrete type based on its command.
Errors encountered while trying to parse an IRC message as a more specialized “server message”,
based on its IRC command.
A type of event that a
UserNoticeMessage represents.Traits
Anything that can be converted into the raw IRC wire format.
Extract the
message_id from a PrivmsgMessage or directly
use an arbitrary String or &str as a message ID. This trait allows you to plug both
of these types directly into say_in_reply_to()
for your convenience.