[][src]Module twitch_irc::message

Generic and Twitch-specific IRC messages.

Structs

Badge

A single Twitch "badge" to be shown next to the user's name in chat.

ClearChatMessage

Timeout, Permaban or when a chat is entirely cleared.

ClearMsgMessage

Message for when a single message is deleted from chat.

Emote

A single emote, appearing as part of a message.

GlobalUserStateMessage

Sent once directly after successful login, containing properties for the logged in user.

HostTargetMessage

When a channel starts or stops hosting another channel.

IRCMessage

A protocol-level IRC message, with arbitrary command, parameters, tags and prefix.

IRCTags

A map of key-value IRCv3 tags.

JoinMessage

Message received when you successfully join a channel.

NoticeMessage

A user-facing notice sent by the server.

PartMessage

Message received when you successfully leave (part) a channel.

PingMessage

A PING connection-control message.

PongMessage

A PONG connection-control message.

PrivmsgMessage

A regular Twitch chat message.

RGBColor

An RGB color, used to color chat user's names.

ReconnectMessage

Sent by the server to signal a connection to disconnect and reconnect

RoomStateMessage

Sent when a channel is initially joined or when a channel updates it state.

SubGiftPromo

Additionally present on giftpaidupgrade and anongiftpaidupgrade messages if the upgrade happens as part of a seasonal promotion on Twitch, e.g. Subtember or similar.

TwitchUserBasics

Set of information describing the basic details of a Twitch user.

UserNoticeMessage

A Twitch USERNOTICE message.

UserStateMessage

Sent when you join a channel or when you successfully sent a PRIVMSG message to a channel.

WhisperMessage

A incoming whisper message (a private user-to-user message).

Enums

ClearChatAction

One of the three types of meaning a CLEARCHAT message can have.

HostTargetAction

The type of action that a HOSTTARGET signifies, either host mode was enabled (entered) or disabled (exited).

IRCParseError

Error while parsing a string into an IRCMessage.

IRCPrefix

A "prefix" part of an IRC message, as defined by RFC 2812:

ServerMessage

An IRCMessage that has been parsed into a more concrete type based on its command.

ServerMessageParseError

Errors encountered while trying to parse an IRC message as a more specialized "server message", based on its IRC command.

UserNoticeEvent

A type of event that a UserNoticeMessage represents.

Traits

AsRawIRC

Anything that can be converted into the raw IRC wire format.