[−][src]Struct twitchchat::commands::PrivMsg
Send a message to a channel.
Fields
prefix: Option<Prefix>
The IRC user that sent this message
channel: String
The channel this message was sent to
message: String
The message body
Methods
impl PrivMsg
[src]
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<TwitchColor>
[src]
The color of the user who sent this message, if set
pub fn irc_name(&self) -> &str
[src]
The irc name of the user (generally same as their twitch account name)
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) -> Uuid
[src]
The unique UUID for this mesage
pub fn message(&self) -> &str
[src]
The message body
pub fn moderator(&self) -> bool
[src]
Whether this user was a moderator
pub fn room_id(&self) -> u64
[src]
The id for the room
pub fn tmi_sent_ts(&self) -> u64
[src]
The timestamp that this message was received by Twitch
pub fn user_id(&self) -> 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 From<Message> for PrivMsg
[src]
impl Clone for PrivMsg
[src]
fn clone(&self) -> PrivMsg
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for PrivMsg
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,