pub struct BotClient { /* private fields */ }
Implementations§
Source§impl BotClient
impl BotClient
pub fn new(auth: String) -> BotClient
Sourcepub fn create_bot(&mut self, name: &str) -> &mut Self
pub fn create_bot(&mut self, name: &str) -> &mut Self
Post
Sourcepub fn fetch_public_bot(&mut self, target: &str) -> &mut Self
pub fn fetch_public_bot(&mut self, target: &str) -> &mut Self
Get for other peoples bots
Sourcepub fn invite_bot(&mut self, target: &str, server: &str) -> &mut Self
pub fn invite_bot(&mut self, target: &str, server: &str) -> &mut Self
Post
bot, then server/group id
Sourcepub fn fetch_owned_bot(&mut self, target: &str) -> &mut Self
pub fn fetch_owned_bot(&mut self, target: &str) -> &mut Self
Get
ONLY YOUR BOTS
Sourcepub fn fetch_owned_bots(&mut self) -> &mut Self
pub fn fetch_owned_bots(&mut self) -> &mut Self
Get
Sourcepub fn delete_bot(&mut self, target: &str) -> &mut Self
pub fn delete_bot(&mut self, target: &str) -> &mut Self
Del
pub fn get(&mut self) -> BotResult
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BotClient
impl RefUnwindSafe for BotClient
impl Send for BotClient
impl Sync for BotClient
impl Unpin for BotClient
impl UnwindSafe for BotClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more