Class SlashCommandContext
java.lang.Object
com.slack.api.bolt.context.Context
com.slack.api.bolt.context.builtin.SlashCommandContext
- All Implemented Interfaces:
RespondUtility,SayUtility
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.slack.api.bolt.context.Context
additionalValues, authTestResponse, botId, botScopes, botToken, botUserId, enterpriseId, enterpriseInstall, functionBotAccessToken, functionExecutionId, logger, requestUserId, requestUserScopes, requestUserToken, slack, teamId -
Constructor Summary
ConstructorsConstructorDescriptionSlashCommandContext(String triggerId, String channelId, String responseUrl, Responder responder) -
Method Summary
Modifier and TypeMethodDescriptionack(SlashCommandResponse response) ack(List<LayoutBlock> blocks) builder()protected booleanbooleaninthashCode()respond(SlashCommandResponse response) respond(List<LayoutBlock> blocks) voidsetChannelId(String channelId) voidsetResponder(Responder responder) voidsetResponseUrl(String responseUrl) voidsetTriggerId(String triggerId) toString()Methods inherited from class com.slack.api.bolt.context.Context
ack, ack, ackWithJson, asyncClient, client, getAdditionalValues, getAuthTestResponse, getBotId, getBotScopes, getBotToken, getBotUserId, getEnterpriseId, getFunctionBotAccessToken, getFunctionExecutionId, getLogger, getRequestUserId, getRequestUserScopes, getRequestUserToken, getSlack, getTeamId, isAttachingFunctionTokenEnabled, isEnterpriseInstall, say, setAttachingFunctionTokenEnabled, setAuthTestResponse, setBotId, setBotScopes, setBotToken, setBotUserId, setEnterpriseId, setEnterpriseInstall, setFunctionBotAccessToken, setFunctionExecutionId, setRequestUserId, setRequestUserScopes, setRequestUserToken, setSlack, setTeamId, toJsonMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.slack.api.bolt.context.RespondUtility
getSlackMethods inherited from interface com.slack.api.bolt.context.SayUtility
client, say, say, say, verifyChannelId
-
Constructor Details
-
SlashCommandContext
public SlashCommandContext() -
SlashCommandContext
-
-
Method Details
-
respond
- Throws:
IOException
-
respond
- Throws:
IOException
-
respond
- Throws:
IOException
-
respond
public WebhookResponse respond(BuilderConfigurator<SlashCommandResponse.SlashCommandResponseBuilder> builder) throws IOException - Throws:
IOException
-
ack
-
ack
-
ack
-
ack
-
builder
-
getTriggerId
-
getChannelId
- Specified by:
getChannelIdin interfaceSayUtility
-
getResponseUrl
- Specified by:
getResponseUrlin interfaceRespondUtility
-
getResponder
- Specified by:
getResponderin interfaceRespondUtility
-
setTriggerId
-
setChannelId
-
setResponseUrl
-
setResponder
- Specified by:
setResponderin interfaceRespondUtility
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-