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
Modifier and Type Method Description ChatDeleteRequest.ChatDeleteRequestBuilderasUser(Boolean asUser)Pass true to post the message as the authed user, instead of as a bot.ChatDeleteRequestbuild()ChatDeleteRequest.ChatDeleteRequestBuilderchannel(String channel)Channel containing the message to be deleted.ChatDeleteRequest.ChatDeleteRequestBuildertoken(String token)Authentication token.StringtoString()ChatDeleteRequest.ChatDeleteRequestBuilderts(String ts)Timestamp of the message to be deleted.
-
Method Details
-
token
Authentication token. Requires scope: `chat:write`- Returns:
this.
-
ts
Timestamp of the message to be deleted.- Returns:
this.
-
channel
Channel containing the message to be deleted.- Returns:
this.
-
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
-
toString
-