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 ImOpenRequestbuild()ImOpenRequest.ImOpenRequestBuilderincludeLocale(boolean includeLocale)Set this to `true` to receive the locale for this im.ImOpenRequest.ImOpenRequestBuilderreturnIm(boolean returnIm)Boolean, indicates you want the full IM channel definition in the response.ImOpenRequest.ImOpenRequestBuildertoken(String token)Authentication token.StringtoString()ImOpenRequest.ImOpenRequestBuilderuser(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
-