The following are Apex classes for the Slack reactions API methods.
Reaction Class
Represents a Reaction.
Reaction Methods
The following are methods for Reaction.
getCount()
Signature
public Integer getCount()
Return Value
Type: Integer
getName()
Signature
public String getName()
Return Value
Type: String
getUrl()
Signature
public String getUrl()
Return Value
Type: String
getUsers()
Signature
public List<String> getUsers()
Return Value
Type: List<String>
setCount(count)
Signature
public void setCount(Integer count)
Parameters
count
Type: Integer
Return Value
Type: void
setName(name)
Signature
public void setName(String name)
Parameters
name
Type: String
Return Value
Type: void
setUrl(url)
Signature
public void setUrl(String url)
Parameters
url
Type: String
Return Value
Type: void
setUsers(users)
Signature
public void setUsers(List<String> users)
Parameters
users
Type: List<String>
Return Value
Type: void
ReactionsAddRequest Class
Sends a request to add a reaction to an item.
Usage
See Slack’s reactions.add method.
ReactionsAddRequest Methods
The following are methods for ReactionsAddRequest.
builder()
Builds a request object that's used when executing the API call.
Signature
public static Slack.ReactionsAddRequest.Builder builder()
ReactionsAddRequest.Builder Class
Contains methods to build an instance of the Slack.ReactionsAddRequest class.
A Builder object is obtained by invoking one of the ReactionsAddRequest.builder methods defined by the ReactionsAddRequest class.
ReactionsAddRequest.Builder Methods
The following are methods for ReactionsAddRequest.Builder. These methods are optional unless specified otherwise.
build()
Required. Returns an instance of Slack.ReactionsAddRequest.
Signature
public Slack.ReactionsAddRequest build()
Return Value
Type: Slack.ReactionsAddRequest
channel(channel)
Required. The channel where the message to add reaction to was posted.
Signature
public Slack.ReactionsAddRequest.Builder channel(String channel)
Parameters
channel
Type: String
Return Value
Type: Slack.ReactionsAddRequest.Builder
file(file)
Signature
public Slack.ReactionsAddRequest.Builder file(String file)
Parameters
file
Type: String
Return Value
Type: Slack.ReactionsAddRequest.Builder
fileComment(fileComment)
Signature
public Slack.ReactionsAddRequest.Builder fileComment(String fileComment)
Parameters
fileComment
Type: String
Return Value
Type: Slack.ReactionsAddRequest.Builder
name(name)
Required. The reaction (emoji) name.
Signature
public Slack.ReactionsAddRequest.Builder name(String name)
Parameters
name
Type: String
Return Value
Type: Slack.ReactionsAddRequest.Builder
timestamp(timestamp)
Required. The timestamp of the message to add reaction to.
Signature
public Slack.ReactionsAddRequest.Builder timestamp(String timestamp)
Parameters
timestamp
Type: String
ReactionsAddResponse Class
Adds a reaction to an item.
Usage
See Slack’s reactions.add method.
ReactionsAddResponse Methods
This class contains standard response methods.
ReactionsGetRequest Class
Sends a request to get reactions for an item.
Usage
See Slack’s reactions.get method.
In this example, the ReactionsGetShortcutDispatcher action runs when a user initiates your shortcut. It uses the ReactionsGetRequest class to parse the response in the view, displaying the message text and the number of reactions to it.
public class ReactionsGetShortcutDispatcher extends Slack.ShortcutDispatcher {
public override Slack.ActionHandler invoke(Slack.ShortcutParameters parameters, Slack.RequestContext context) {
return Slack.ActionHandler.Modal(new Handler(parameters, context), 'Reactions Get');
}
public class Handler implements Slack.ModalHandler {
Slack.ShortcutParameters parameters;
Slack.RequestContext context;
public Handler(Slack.ShortcutParameters parameters, Slack.RequestContext context) {
this.parameters = parameters;
this.context = context;
}
public Slack.ModalView call() {
//name must match the DeveloperName of your SlackApp.
Slack.App app = Slack.App.MySlackApp.get();
Slack.BotClient botClient = app.getBotClientForTeam(context.getTeamId());
Slack.ReactionsGetRequest req = new Slack.ReactionsGetRequest.builder()
.channel(context.getChannelId())
.timestamp(context.getMessageContext().getTs())
.build();
Slack.ReactionsGetResponse response = BotClient.reactionsGet(req);
Slack.ViewReference viewReference;
if(response.getError() != null) {
System.debug(response.getError());
viewReference = Slack.View.message_modal.get();
viewReference.setParameter('title', 'Shortcut error');
viewReference.setParameter('message', 'The shortcut failed with the error ' + response.getError() + '. Make sure you are using the shortcut in a channel where the bot for the current app is a member.');
} else {
String messageText = response.getMessage().getText();
List<Slack.Reaction> reactions = response.getMessage().getReactions();
Integer reactionsCount = reactions != null ? reactions.size() : 0;
viewReference = Slack.View.message_reactions.get();
viewReference.setParameter('messageText', messageText);
viewReference.setParameter('reactionsCount', reactionsCount);
}
Slack.ModalView modalView = new Slack.ModalView.builder()
.viewReference(viewReference)
.build();
return modalView;
}
}
}
The message_reactions view looks like this.
description: "This modal displays message text and reactions to it. It is meant to be used with the ReactionsGet api method."
schema:
properties:
messageText:
type: string
required: true
reactionsCount:
type: number
required: true
components:
- definition: modal
properties:
title: "View Message Reactions"
components:
- definition: section
properties:
text:
text: "The following message has a reaction count of {!view.properties.reactionsCount}"
type: "mrkdwn"
- definition: section
properties:
text:
text: "{!view.properties.messageText}"
type: "mrkdwn"
See the sample app for more information.
ReactionsGetRequest Methods
The following are methods for ReactionsGetRequest.
builder()
Builds a request object that's used when executing the API call.
Signature
public static Slack.ReactionsGetRequest.Builder builder()
Return Value
Type: Slack.ReactionsGetRequest.Builder
ReactionsGetRequest.Builder Class
Contains methods to build an instance of the Slack.ReactionsGetRequest class.
A Builder object is obtained by invoking one of the ReactionsGetRequest.builder methods defined by the ReactionsGetRequest class.
ReactionsGetRequest.Builder Methods
The following are methods for ReactionsGetRequest.Builder. These methods are optional unless specified otherwise.
build()
Required. Returns an instance of Slack.ReactionsGetRequest.
Signature
public Slack.ReactionsGetRequest build()
Return Value
Type: Slack.ReactionsGetRequest
channel(channel)
The channel where the message to get reactions for was posted.
Signature
public Slack.ReactionsGetRequest.Builder channel(String channel)
Parameters
channel
Type: String
Return Value
Type: Slack.ReactionsGetRequest.Builder
file(file)
The file to get reactions for.
Signature
public Slack.ReactionsGetRequest.Builder file(String file)
Parameters
file
Type: String
Return Value
Type: Slack.ReactionsGetRequest.Builder
fileComment(fileComment)
The file comment to get reactions for.
Signature
public Slack.ReactionsGetRequest.Builder fileComment(String fileComment)
Parameters
fileComment
Type: String
Return Value
Type: Slack.ReactionsGetRequest.Builder
full(full)
Specifies whether to return the complete reaction list.
Signature
public Slack.ReactionsGetRequest.Builder full(Boolean full)
Parameters
full Type: Boolean If true, always return the complete reaction list.
Return Value
Type: Slack.ReactionsGetRequest.Builder
timestamp(timestamp)
Signature
public Slack.ReactionsGetRequest.Builder timestamp(String timestamp)
Parameters
timestamp
Type: String
Return Value
Type: Slack.ReactionsGetRequest.Builder
ReactionsGetResponse Class
Gets reactions for an item.
Usage
See Slack’s reactions.get method.
ReactionsGetResponse Methods
This class contains standard response methods.
The following are methods for ReactionsGetResponse.
getMessage()
Signature
public Slack.ReactionsGetResponse.Message getMessage()
Return Value
Type: Slack.ReactionsGetResponse.Message
getType()
Signature
public String getType()
Return Value
Type: String
setChannel(channel)
Sets the channel where the message to get reactions for was posted.
Signature
public void setChannel(String channel)
Parameters
channel
Type: String
Return Value
Type: void
setMessage(message)
Signature
public void setMessage(Slack.ReactionsGetResponse.Message message)
Parameters
message
Type: Slack.ReactionsGetResponse.Message
setType(type)
Signature
public void setType(String type)
Parameters
type
Type: String
Return Value
Type: void
ReactionsGetResponse.Message Class
ReactionsGetResponse.Message Methods
The following are methods for ReactionsGetResponse.Message.
getBotId()
Signature
public String getBotId()
Return Value
Type: String
getBotProfile()
Signature
public Slack.BotProfile getBotProfile()
Return Value
Type: Slack.BotProfile
getPermalink()
Signature
public String getPermalink()
Return Value
Type: String
getReactions()
Signature
public List<Slack.Reaction> getReactions()
Return Value
Type: List<Slack.Reaction>
getSubtype()
Signature
public String getSubtype()
Return Value
Type: String
getTeam()
Signature
public String getTeam()
Return Value
Type: String
getText()
Signature
public String getText()
Return Value
Type: String
getTs()
Signature
public String getTs()
Return Value
Type: String
getType()
Signature
public String getType()
Return Value
Type: String
getUser()
Signature
public String getUser()
Return Value
Type: String
getUsername()
Signature
public String getUsername()
Return Value
Type: String
setBotId(botId)
Signature
public void setBotId(String botId)
Parameters
botId
Type: String
Return Value
Type: void
setBotProfile(botProfile)
Signature
public void setBotProfile(Slack.BotProfile botProfile)
Parameters
botProfile
Type: Slack.BotProfile
Return Value
Type: void
setPermalink(permalink)
Signature
public void setPermalink(String permalink)
Parameters
permalink
Type: String
Return Value
Type: void
setReactions(reactions)
Signature
public void setReactions(List<Slack.Reaction> reactions)
Parameters
reactions
Type: List<Slack.Reaction>
Return Value
Type: void
setSubtype(subtype)
Signature
public void setSubtype(String subtype)
Parameters
subtype
Type: String
Return Value
Type: void
setTeam(team)
Signature
public void setTeam(String team)
Parameters
team
Type: String
setTs(ts)
Signature
public void setTs(String ts)
Parameters
ts
Type: String
Return Value
Type: void
setType(type)
Signature
public void setType(String type)
Parameters
type
Type: String
Return Value
Type: void
setUser(user)
Signature
public void setUser(String user)
Parameters
user Type String
Return Value
Type: void
setUsername(username)
Signature
public void setUsername(String username)
Parameters
username
Type: String
Return Value
Type: void
ReactionsListRequest Class
Sends a request to list reactions made by a user.
Usage
See Slack's reactions.list method.
ReactionsListRequest Methods
The following are methods for ReactionsListRequest.
builder()
Builds a request object that's used when executing the API call.
Signature
public static Slack.ReactionsListRequest.Builder builder()
Return Value
Type: Slack.ReactionsListRequest.Builder
ReactionsListRequest.Builder Class
Contains methods to build an instance of the Slack.ReactionsListRequest class.
A Builder object is obtained by invoking one of the ReactionsListRequest.builder methods defined by the ReactionsListRequest class.
ReactionsListRequest.Builder Methods
The following are methods for ReactionsListRequest.Builder. These methods are optional unless specified otherwise.
build()
Required. Returns an instance of Slack.ReactionsListRequest.
Signature
public Slack.ReactionsListRequest build()
Return Value
Type: Slack.ReactionsListRequest
count(count)
Signature
public Slack.ReactionsListRequest.Builder count(Integer count)
Parameters
count
Type: Integer
Return Value
Type: Slack.ReactionsListRequest.Builder
full(full)
Signature
public Slack.ReactionsListRequest.Builder full(Boolean full)
Parameters
full
Type: Boolean
Return Value
Type: Slack.ReactionsListRequest.Builder
limitValue(limitValue)
Signature
public Slack.ReactionsListRequest.Builder limitValue(Integer limitValue)
Parameters
limitValue
Type: Integer
Return Value
Type: Slack.ReactionsListRequest.Builder
page(page)
Signature
public Slack.ReactionsListRequest.Builder page(Integer page)
Parameters
page
Type: Integer
Return Value
Type: Slack.ReactionsListRequest.Builder
teamId(teamId)
Signature
public Slack.ReactionsListRequest.Builder teamId(String teamId)
Parameters
teamId
Type: String
Return Value
Type: Slack.ReactionsListRequest.Builder
user(user)
Signature
public Slack.ReactionsListRequest.Builder user(String user)
Parameters
user
Type: String
Return Value
Type: Slack.ReactionsListRequest.Builder
ReactionsListResponse Class
Lists reactions made by a user.
ReactionsListResponse Methods
This class contains standard response methods.
The following are methods for ReactionsListResponse.
getItems()
Signature
public List<Slack.ReactionsListResponse.Item> getItems()
Return Value
Type: List<Slack.ReactionsListResponse.Item>
getPaging()
Signature
public Slack.Paging getPaging()
Return Value
Type: Slack.Paging
setItems(items)
Signature
public void setItems(List<Slack.ReactionsListResponse.Item> items)
Parameters
items
Type: List<Slack.ReactionsListResponse.Item>
Return Value
Type: void
setPaging(paging)
Signature
public void setPaging(Slack.Paging paging)
Parameters
paging
Type: Slack.Paging
ReactionsListReponse.Icons Class
ReactionsListReponse.Icons Methods
The following are methods for ReactionsListResponse.Icons.
getImage36()
Signature
public String getImage36()
Return Value
Type: String
getImage48()
Signature
public String getImage48()
Return Value
Type: String
getImage64()
Signature
public String getImage64()
Return Value
Type: String
getImage72()
Signature
public String getImage72()
Return Value
Type: String
setImage36(image36)
Signature
public void setImage36(String image36)
Parameters
image36
Type: String
Return Value
Type: void
setImage48(image48)
Signature
public void setImage48(String image48)
Parameters
image48
Type: String
Return Value
Type: void
setImage64(image64)
Signature
public void setImage64(String image64)
Parameters
image64
Type: String
Return Value
Type: void
setImage72(image72)
Signature
public void setImage72(String image72)
Parameters
image72
Type: String
Return Value
Type: void
ReactionsListReponse.Item Class
ReactionsListReponse.Item Methods
The following are methods for ReactionsListResponse.Item.
getChannel()
Signature
public String getChannel()
Return Value
Type: String
getMessage()
Signature
public Slack.ReactionsListResponse.Message getMessage()
Return Value
Type: Slack.ReactionsListResponse.Message
getType()
Signature
public String getType()
Return Value
Type: String
setChannel(channel)
Signature
public void setChannel(String channel)
Parameters
channel
Type: String
Return Value
Type: void
setMessage(message)
Signature
public void setMessage(Slack.ReactionsListResponse.Message message)
Parameters
message
Type: Slack.ReactionsListResponse.Message
Return Value
Type: void
setType(type)
Signature
public void setType(String type)
Parameters
type
Type: String
Return Value
Type: void
ReactionsListResponse.Message Class
Represents a message in the response, which contains the channel ID for the message.
Usage
See Slack's reactions.list method.
ReactionsListResponse.Message Methods
The following are methods for ReactionsListResponse.Message.
getBotId()
Signature
public String getBotId()
Return Value
Type: String
getBotProfile()
Signature
public Slack.BotProfile getBotProfile()
Return Value
Type: Slack.BotProfile
getClientMsgId()
Signature
public String getClientMsgId()
Return Value
Type: String
getFiles()
Signature
public List<Slack.File> getFiles()
Return Value
Type: List<Slack.File>
getIcons()
Signature
public Slack.ReactionsListResponse.Icons getIcons()
Return Value
Type: Slack.ReactionsListResponse.Icons
getInviter()
Signature
public String getInviter()
Return Value
Type: String
getLastRead()
Signature
public String getLastRead()
Return Value
Type: String
getLatestReply()
Signature
public String getLatestReply()
Return Value
Type: String
getParentUserId()
Signature
public String getParentUserId()
Return Value
Type: String
getPermalink()
Signature
public String getPermalink()
Return Value
Type: String
getReactions()
Signature
public List<Slack.Reaction> getReactions()
Return Value
Type: List<Slack.Reaction>
getReplyCount()
Signature
public Integer getReplyCount()
Return Value
Type: Integer
getReplyUsers()
Signature
public List<String> getReplyUsers()
Return Value
Type: List<String>
getReplyUsersCount()
Signature
public Integer getReplyUsersCount()
Return Value
Type: Integer
getSourceTeam()
Signature
public String getSourceTeam()
Return Value
Type: String
getSubtype()
Signature
public String getSubtype()
Return Value
Type: String
getTeam()
Signature
public String getTeam()
Return Value
Type: String
getText()
Signature
public String getText()
Return Value
Type: String
getThreadTs()
Signature
public String getThreadTs()
Return Value
Type: String
getTs()
Signature
public String getTs()
Return Value
Type: String
getType()
Signature
public String getType()
Return Value
Type: String
getUser()
Signature
public String getUser()
Return Value
Type: String
getUsername()
Signature
public String getUsername()
Return Value
Type: String
getUserProfile()
Signature
public Slack.ReactionsListResponse.UserProfile getUserProfile()
Return Value
Type: Slack.ReactionsListResponse.UserProfile
getUserTeam()
Signature
public String getUserTeam()
Return Value
Type: String
isDisplayAsBot()
Signature
public Boolean isDisplayAsBot()
Return Value
Type: Boolean
isLocked()
Signature
public Boolean isLocked()
Return Value
Type: Boolean
isSubscribed()
Signature
public Boolean isSubscribed()
Return Value
Type: Boolean
isUpload()
Signature
public Boolean isUpload()
Return Value
Type: Boolean
setBotId(botId)
Signature
public void setBotId(String botId)
Parameters
botId
Type: String
Return Value
Type: void
setBotProfile(botProfile)
Signature
public void setBotProfile(Slack.BotProfile botProfile)
Parameters
botProfile
Type: Slack.BotProfile
Return Value
Type: void
setClientMsgId(clientMsgId)
Signature
public void setClientMsgId(String clientMsgId)
Parameters
clientMsgId
Type: String
Return Value
Type: void
setDisplayAsBot(displayAsBot)
Signature
public void setDisplayAsBot(Boolean displayAsBot)
Parameters
displayAsBot
Type: Boolean
Return Value
Type: void
setFiles(files)
Signature
public void setFiles(List<Slack.File> files)
Parameters
files
Type: List<Slack.File>
Return Value
Type: void
setIcons(icons)
Signature
public void setIcons(Slack.ReactionsListResponse.Icons icons)
Parameters
icons
Type: Slack.ReactionsListResponse.Icons
Return Value
Type: void
setInviter(inviter)
Signature
public void setInviter(String inviter)
Parameters
inviter
Type: String
Return Value
Type: void
setLastRead(lastRead)
Signature
public void setLastRead(String lastRead)
Parameters
lastRead
Type: String
Return Value
Type: void
setLatestReply(latestReply)
Signature
public void setLatestReply(String latestReply)
Parameters
latestReply
Type: String
Return Value
Type: void
setLocked(locked)
Signature
public void setLocked(Boolean locked)
Parameters
locked
Type: Boolean
Return Value
Type: void
setParentUserId(parentUserId)
Signature
public void setParentUserId(String parentUserId)
Parameters
parentUserId
Type: String
Return Value
Type: void
setPermalink(permalink)
Signature
public void setPermalink(String permalink)
Parameters
permalink
Type: String
Return Value
Type: void
setReactions(reactions)
Signature
public void setReactions(List<Slack.Reaction> reactions)
Parameters
reactions
Type: List<Slack.Reaction>
Return Value
Type: void
setReplyCount(replyCount)
Signature
public void setReplyCount(Integer replyCount)
Parameters
replyCount
Type: Integer
Return Value
Type: void
setReplyUsers(replyUsers)
Signature
public void setReplyUsers(List<String> replyUsers)
Parameters
replyUsers
Type: List<String>
Return Value
Type: void
setReplyUsersCount(replyUsersCount)
Signature
public void setReplyUsersCount(Integer replyUsersCount)
Parameters
replyUsersCount
Type: Integer
Return Value
Type: void
setSourceTeam(sourceTeam)
Signature
public void setSourceTeam(String sourceTeam)
Parameters
sourceTeam
Type: String
Return Value
Type: void
setSubscribed(subscribed)
Signature
public void setSubscribed(Boolean subscribed)
Parameters
subscribed
Type: Boolean
Return Value
Type: void
setSubtype(subtype)
Signature
public void setSubtype(String subtype)
Parameters
subtype
Type: String
Return Value
Type: void
setTeam(team)
Signature
public void setTeam(String team)
Parameters
team
Type: String
Return Value
Type: void
setText(text)
Signature
public void setText(String text)
Parameters
text
Type: String
Return Value
Type: void
setThreadTs(threadTs)
Signature
public void setThreadTs(String threadTs)
Parameters
threadTs
Type: String
Return Value
Type: void
setTs(ts)
Signature
public void setTs(String ts)
Parameters
ts
Type: String
Return Value
Type: void
setType(type)
Signature
public void setType(String type)
Parameters
type
Type: String
Return Value
Type: void
setUpload(upload)
Signature
public void setUpload(Boolean upload)
Parameters
upload
Type: Boolean
Return Value
Type: void
setUser(user)
Signature
public void setUser(String user)
Parameters
user
Type: String
Return Value
Type: void
setUsername(username)
Signature
public void setUsername(String username)
Parameters
username
Type: String
Return Value
Type: void
setUserProfile(userProfile)
Signature
public void setUserProfile(Slack.ReactionsListResponse.UserProfile userProfile)
Parameters
userProfile
Type: Slack.ReactionsListResponse.UserProfile
Return Value
Type: void
setUserTeam(userTeam)
Signature
public void setUserTeam(String userTeam)
Parameters
userTeam
Type: String
Return Value
Type: void
ReactionsListResponse.MessageRootReply Class
ReactionsListResponse.MessageRootReply Methods
The following are methods for ReactionsListResponse.MessageRootReply.
getTs()
Signature
public String getTs()
Return Value
Type: String
getUser()
Signature
public String getUser()
Return Value
Type: String
setTs(ts)
Signature
public void setTs(String ts)
Parameters
ts
Type: String
Return Value
Type: void
setUser(user)
Signature
public void setUser(String user)
Parameters
user
Type: String
Return Value
Type: void
ReactionsListResponse.UserProfile Class
ReactionsListResponse.UserProfile Methods
The following are methods for ReactionsListResponse.UserProfile.
getAvatarHash()
Signature
public String getAvatarHash()
Return Value
Type: String
getDisplayName()
Signature
public String getDisplayName()
Return Value
Type: String
getFirstName()
Signature
public String getFirstName()
Return Value
Type: String
getImage72()
Signature
public String getImage72()
Return Value
Type: String
getName()
Signature
public String getName()
Return Value
Type: String
getRealName()
Signature
public String getRealName()
Return Value
Type: String
getTeam()
Signature
public String getTeam()
Return Value
Type: String
isRestricted()
Signature
public Boolean isRestricted()
Return Value
Type: Boolean
isUltraRestricted()
Signature
public Boolean isUltraRestricted()
Return Value
Type: Boolean
setAvatarHash(avatarHash)
Signature
public void setAvatarHash(String avatarHash)
Parameters
avatarHash
Type: String
Return Value
Type: void
setDisplayName(displayName)
Signature
public void setDisplayName(String displayName)
Parameters
displayName
Type: String
Return Value
Type: void
setFirstName(firstName)
Signature
public void setFirstName(String firstName)
Parameters
firstName
Type: String
Return Value
Type: void
setImage72(image72)
Signature
public void setImage72(String image72)
Parameters
image72
Type: String
Return Value
Type: void
setName(name)
Signature
public void setName(String name)
Parameters
name
Type: String
Return Value
Type: void
setRealName(realName)
Signature
public void setRealName(String realName)
Parameters
realName
Type: String
Return Value
Type: void
setRestricted(restricted)
Signature
public void setRestricted(Boolean restricted)
Parameters
restricted
Type: Boolean
Return Value
Type: void
setTeam(team)
Signature
public void setTeam(String team)
Parameters
team
Type: String
Return Value
Type: void
setUltraRestricted(ultraRestricted)
Signature
public void setUltraRestricted(Boolean ultraRestricted)
Parameters
ultraRestricted
Type: Boolean
Return Value
Type: void
ReactionsRemoveRequest Class
Sends a request to remove a reaction from an item.
Usage
See Slack’s reactions.remove method.
ReactionsRemoveRequest Methods
The following are methods for ReactionsRemoveRequest.
builder()
Builds a request object that's used when executing the API call.
Signature
public static Slack.ReactionsRemoveRequest.Builder builder()
Return Value
Type: Slack.ReactionsRemoveRequest.Builder
ReactionsRemoveRequest.Builder Class
Contains methods to build an instance of the Slack.ReactionsRemoveRequest class.
A Builder object is obtained by invoking one of the ReactionsRemoveRequest.builder methods defined by the ReactionsRemoveRequest class.
ReactionsRemoveRequest.Builder Methods
The following are methods for ReactionsRemoveRequest.Builder. These methods are optional unless specified otherwise. One of file(file), fileComment(fileComment), or the combination of channel(channel) and timestamp(timestamp) must be specified.
build()
Required. Returns an instance of Slack.ReactionsRemoveRequest.
Signature
public Slack.ReactionsRemoveRequest build()
Return Value
Type: Slack.ReactionsRemoveRequest
channel(channel)
The channel where the message to remove reaction from was posted.
Signature
public Slack.ReactionsRemoveRequest.Builder channel(String channel)
Parameters
channel
Type: String
Return Value
Type: Slack.ReactionsRemoveRequest.Builder
file(file)
The file to remove reaction from.
Signature
public Slack.ReactionsRemoveRequest.Builder file(String file)
Parameters
file
Type: String
Return Value
Type: Slack.ReactionsRemoveRequest.Builder
fileComment(fileComment)
The file comment to get reactions for.
Signature
public Slack.ReactionsRemoveRequest.Builder fileComment(String fileComment)
Parameters
fileComment
Type: String
Return Value
Type: Slack.ReactionsRemoveRequest.Builder
name(name)
Required. The reaction (emoji) name.
Signature
public Slack.ReactionsRemoveRequest.Builder full(Boolean full)
Parameters
name
Type: String
Return Value
Type: Slack.ReactionsRemoveRequest.Builder
timestamp(timestamp)
Timestamp of the message to remove reaction from.
Signature
public Slack.ReactionsRemoveRequest.Builder timestamp(String timestamp)
Parameters
timestamp
Type: String
Return Value
Type: Slack.ReactionsRemoveRequest.Builder
ReactionsRemoveResponse Class
Removes a reaction from an item.
Usage
See Slack’s reactions.remove method.
ReactionsRemoveResponse Methods
This class contains standard response methods.