pub struct Bots {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl Bots
impl Bots
Sourcepub async fn info(
&self,
bot: &str,
) -> Result<Response<BotsInfoSchema>, ClientError>
pub async fn info( &self, bot: &str, ) -> Result<Response<BotsInfoSchema>, ClientError>
This function performs a GET to the /bots.info endpoint.
Gets information about a bot user.
FROM: https://api.slack.com/methods/bots.info
Parameters:
token: &str– Authentication token. Requires scope:users:read.bot: &str– Bot user to get info on.
Auto Trait Implementations§
impl Freeze for Bots
impl !RefUnwindSafe for Bots
impl Send for Bots
impl Sync for Bots
impl Unpin for Bots
impl !UnwindSafe for Bots
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