[][src]Struct twitchchat::commands::PrivMsg

pub struct PrivMsg { /* fields omitted */ }

Send a message to a channel.

Methods

impl PrivMsg[src]

pub fn tags(&self) -> &Tags[src]

IRC tags

pub fn user(&self) -> &str[src]

The irc name of the user (generally same as their twitch account name)

pub fn channel(&self) -> &Channel[src]

The channel this message was sent to

pub fn message(&self) -> &str[src]

The message body

pub fn is_action(&self) -> bool[src]

Whether this message was an action (someone doing /me message)

impl PrivMsg[src]

pub fn badge_info(&self) -> Vec<BadgeInfo>[src]

Metadata related to the chat badges

Currently used only for subscriber, to indicate the exact number of months the user has been a subscriber.

pub fn badges(&self) -> Vec<Badge>[src]

List of badges attached to the user/message

pub fn bits(&self) -> u64[src]

How many bits were attached (0 for None)

pub fn color(&self) -> Option<Color>[src]

The color of the user who sent this message, if set

pub fn display_name(&self) -> Option<&str>[src]

The display name of the user, if set

pub fn emotes(&self) -> Vec<Emotes>[src]

List of emotes found in the message body.

pub fn id(&self) -> Option<&str>[src]

The unique UUID for this mesage

pub fn moderator(&self) -> bool[src]

Whether this user was a moderator

pub fn room_id(&self) -> Option<u64>[src]

The id for the room

pub fn tmi_sent_ts(&self) -> Option<u64>[src]

The timestamp that this message was received by Twitch

pub fn user_id(&self) -> Option<u64>[src]

The id of the user who sent this message

Trait Implementations

impl Tag for PrivMsg[src]

impl PartialEq<PrivMsg> for PrivMsg[src]

impl Clone for PrivMsg[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<Message> for PrivMsg[src]

impl Debug for PrivMsg[src]

impl Serialize for PrivMsg[src]

impl<'de> Deserialize<'de> for PrivMsg[src]

Auto Trait Implementations

impl Send for PrivMsg

impl Sync for PrivMsg

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]