[−][src]Struct twitchchat::commands::PrivMsg
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(&self) -> 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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for PrivMsg
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,