Package com.slack.api.methods.request.im
Class ImOpenRequest.ImOpenRequestBuilder
java.lang.Object
com.slack.api.methods.request.im.ImOpenRequest.ImOpenRequestBuilder
- Enclosing class:
- ImOpenRequest
public static class ImOpenRequest.ImOpenRequestBuilder extends Object
-
Method Summary
Modifier and Type Method Description ImOpenRequest
build()
ImOpenRequest.ImOpenRequestBuilder
includeLocale(boolean includeLocale)
Set this to `true` to receive the locale for this im.ImOpenRequest.ImOpenRequestBuilder
returnIm(boolean returnIm)
Boolean, indicates you want the full IM channel definition in the response.ImOpenRequest.ImOpenRequestBuilder
token(String token)
Authentication token.String
toString()
ImOpenRequest.ImOpenRequestBuilder
user(String user)
User to open a direct message channel with.
-
Method Details
-
token
Authentication token. Requires scope: `im:write`- Returns:
this
.
-
user
User to open a direct message channel with.- Returns:
this
.
-
returnIm
Boolean, indicates you want the full IM channel definition in the response.- Returns:
this
.
-
includeLocale
Set this to `true` to receive the locale for this im. Defaults to `false`- Returns:
this
.
-
build
-
toString
-