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
All Methods Instance Methods Concrete Methods 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 Detail
-
token
public ImOpenRequest.ImOpenRequestBuilder token(String token)
Authentication token. Requires scope: `im:write`- Returns:
this.
-
user
public ImOpenRequest.ImOpenRequestBuilder user(String user)
User to open a direct message channel with.- Returns:
this.
-
returnIm
public ImOpenRequest.ImOpenRequestBuilder returnIm(boolean returnIm)
Boolean, indicates you want the full IM channel definition in the response.- Returns:
this.
-
includeLocale
public ImOpenRequest.ImOpenRequestBuilder includeLocale(boolean includeLocale)
Set this to `true` to receive the locale for this im. Defaults to `false`- Returns:
this.
-
build
public ImOpenRequest build()
-
-