Class ChatDeleteRequest.ChatDeleteRequestBuilder
- java.lang.Object
-
- com.slack.api.methods.request.chat.ChatDeleteRequest.ChatDeleteRequestBuilder
-
- Enclosing class:
- ChatDeleteRequest
public static class ChatDeleteRequest.ChatDeleteRequestBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChatDeleteRequest.ChatDeleteRequestBuilder
asUser(Boolean asUser)
Pass true to post the message as the authed user, instead of as a bot.ChatDeleteRequest
build()
ChatDeleteRequest.ChatDeleteRequestBuilder
channel(String channel)
Channel containing the message to be deleted.ChatDeleteRequest.ChatDeleteRequestBuilder
token(String token)
Authentication token.String
toString()
ChatDeleteRequest.ChatDeleteRequestBuilder
ts(String ts)
Timestamp of the message to be deleted.
-
-
-
Method Detail
-
token
public ChatDeleteRequest.ChatDeleteRequestBuilder token(String token)
Authentication token. Requires scope: `chat:write`- Returns:
this
.
-
ts
public ChatDeleteRequest.ChatDeleteRequestBuilder ts(String ts)
Timestamp of the message to be deleted.- Returns:
this
.
-
channel
public ChatDeleteRequest.ChatDeleteRequestBuilder channel(String channel)
Channel containing the message to be deleted.- Returns:
this
.
-
asUser
public ChatDeleteRequest.ChatDeleteRequestBuilder asUser(Boolean asUser)
Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See [authorship](#authorship) below.NOTE: The default value is intentionally null to support workplace apps.
- Returns:
this
.
-
build
public ChatDeleteRequest build()
-
-