Enum hackchat::ChatEvent
[−]
[src]
pub enum ChatEvent {
Message(String, String, String),
JoinRoom(String),
LeaveRoom(String),
Info(String),
}Various Hack.chat events
Variants
Message(String, String, String)Raised when there is a new message from the channel
The format is ChatEvent::Message(nick, text, trip_code)
JoinRoom(String)Rasied when someone joins the channel
The format is ChatEvent::JoinRoom(nick)
LeaveRoom(String)Raised when someone leaves the channel
The format is ChatEvent::LeaveRoom(nick)
Info(String)Raised when there is an event from the channel itself. Some examples include:
- The result of the stats requests
- A user being banned.