slack_web_api v1.2.1 SlackWebAPI.Api.Bots

API calls for all endpoints tagged Bots.

Link to this section Summary

Functions

Gets information about a bot user.

Link to this section Functions

Link to this function

bots_info(connection, opts \\ [])

bots_info(Tesla.Env.client(), keyword()) ::
  {:ok, map()} | {:error, Tesla.Env.t()}

Gets information about a bot user.

Parameters

  • connection (SlackWebAPI.Connection): Connection to server
  • opts (KeywordList): [optional] Optional parameters

    • :token (String.t): Authentication token. Requires scope: users:read
    • :bot (String.t): Bot user to get info on

Returns

{:ok, %{}} on success {:error, info} on failure