[][src]Trait ttv_chat::PrivmsgExt

pub trait PrivmsgExt {
    fn reply(&mut self, msg: &Privmsg<'_>, data: &str) -> Result<(), Error>;
fn say(&mut self, msg: &Privmsg<'_>, data: &str) -> Result<(), Error>; }

Extensions to the Privmsg message type

Required methods

fn reply(&mut self, msg: &Privmsg<'_>, data: &str) -> Result<(), Error>

Reply to this message with data

fn say(&mut self, msg: &Privmsg<'_>, data: &str) -> Result<(), Error>

Send a message back to the channel this Privmsg came from

Loading content...

Implementors

impl<'a, W> PrivmsgExt for W where
    W: Write + ?Sized
[src]

Loading content...