Class ChatDeleteRequest.ChatDeleteRequestBuilder
java.lang.Object
com.slack.api.methods.request.chat.ChatDeleteRequest.ChatDeleteRequestBuilder
- Enclosing class:
- ChatDeleteRequest
public static class ChatDeleteRequest.ChatDeleteRequestBuilder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description ChatDeleteRequest.ChatDeleteRequestBuilderasUser(java.lang.Boolean asUser)Pass true to post the message as the authed user, instead of as a bot.ChatDeleteRequestbuild()ChatDeleteRequest.ChatDeleteRequestBuilderchannel(java.lang.String channel)Channel containing the message to be deleted.ChatDeleteRequest.ChatDeleteRequestBuildertoken(java.lang.String token)Authentication token.java.lang.StringtoString()ChatDeleteRequest.ChatDeleteRequestBuilderts(java.lang.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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-