Work with Bot Users
The following are Apex classes for the Slack bots API methods.
Represents icons for a bot user.
The following are methods for BotIcons.
Signature
Return Value
Type: String
Signature
Return Value
Type: String
Signature
Return Value
Type: String
Signature
Parameters
image36
Type: String
Return Value
Type: void
Signature
Parameters
image48
Type: String
Return Value
Type: void
Signature
Parameters
image72
Type: String
Return Value
Type: void
Represents the profile information for a bot.
The following are methods for BotProfile.
Signature
Return Value
Type: String
Signature
Return Value
Type: Slack.BotProfile.Icons
Signature
Return Value
Type: String
Signature
Return Value
Type: String
Signature
Return Value
Type: String
Signature
Return Value
Type: Integer
Signature
Return Value
Type: Boolean
Signature
Parameters
appId
Type: String
Return Value
Type: void
Signature
Parameters
deleted
Type: Boolean
Return Value
Type: void
Signature
Parameters
icons
Type: Slack.BotProfile.Icons
Return Value
Type: void
Signature
Parameters
id
Type: String
Return Value
Type: void
Signature
Parameters
name
Type: String
Return Value
Type: void
Signature
Parameters
teamId
Type: String
Return Value
Type: void
Signature
Parameters
updated
Type: Integer
Return Value
Type: void
Represents icons on a bot's profile information.
The following are methods for BotProfile.Icons.
Signature
Return Value
Type: String
Signature
Return Value
Type: String
Signature
Return Value
Type: String
Signature
Parameters
image36
Type: String
Return Value
Type: void
Signature
Parameters
image48
Type: String
Return Value
Type: void
Signature
Parameters
image72
Type: String
Return Value
Type: void
Sends a request to get information about a bot user.
The following are methods for BotsInfoRequest.
Builds a request object that's used when executing the API call.
Signature
Return Value
Type: Slack.BotsInfoRequest.Builder
Contains methods to build an instance of the Slack.BotsInfoRequest class.
A Builder object is obtained by invoking one of the BotsInfoRequest.Builder methods defined by the BotsInfoRequest class.
The following are methods for BotsInfoRequest.Builder. These methods are optional unless specified otherwise.
The bot user to get information on.
Signature
Parameters
bot
Type: String
Return Value
Type: Slack.BotsInfoRequest.Builder
Required. Builds an instance of the Slack.BotsInfoRequest class.
Signature
Return Value
Type: Slack.BotsInfoRequest
Encoded team ID or enterprise ID where the bot exists, required if org token is used.
Signature
Parameters
teamId
Type: String
Return Value
Type: Slack.BotsInfoRequest.Builder
Gets information about a bot user.
This class contains standard response methods.
The following are methods for BotsInfoResponse.
Signature
Return Value
Type: Slack.BotsInfoResponse.Bot
Signature
Parameters
bot
Type: Slack.BotsInfoResponse.Bot
Return Value
Type: void
The following are methods for BotsInfoResponse.Bot.
Returns the app ID, for example, A161CLERW.
Signature
Return Value
Type: String
Gets the icons for a bot user.
Signature
Return Value
Type: Slack.BotIcons
Returns the bot ID, for example, B061F7JD2.
Signature
Return Value
Type: String
Returns the name of the bot.
Signature
Return Value
Type: String
Signature
Return Value
Type: Integer
Returns the user ID, for example, U012ABCDEF.
Signature
public String getUserId()
Return Value
Type: String
Returns true if a bot user is deleted or false if the bot user is still active.
Signature
public Boolean isDeleted()
Return Value
Type: Boolean
Specifies the app ID for the bot.
Signature
Parameters
appId
Type: String
Return Value
Type: void
Sets the icon on a bot user.
Signature
Parameters
icons
Type: Slack.BotIcons
Return Value
Type: void
Specifies whether the bot user is deleted.
Signature
Parameters
deleted
Type: Boolean
Return Value
Type: void
Specifies the bot ID.
Signature
Parameters
id
Type: String
Return Value
Type: void
Specifies the bot name.
Signature
Parameters
name
Type: String
Return Value
Type: void
Signature
Parameters
updated
Type: Integer
Return Value
Type: void
Signature
Parameters
userId
Type: String
Return Value
Type: void