Class ChannelsJoinRequest.ChannelsJoinRequestBuilder
- java.lang.Object
-
- com.slack.api.methods.request.channels.ChannelsJoinRequest.ChannelsJoinRequestBuilder
-
- Enclosing class:
- ChannelsJoinRequest
public static class ChannelsJoinRequest.ChannelsJoinRequestBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelsJoinRequest
build()
ChannelsJoinRequest.ChannelsJoinRequestBuilder
name(String name)
Name of channel to joinChannelsJoinRequest.ChannelsJoinRequestBuilder
token(String token)
Authentication token.String
toString()
ChannelsJoinRequest.ChannelsJoinRequestBuilder
validate(boolean validate)
Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.
-
-
-
Method Detail
-
token
public ChannelsJoinRequest.ChannelsJoinRequestBuilder token(String token)
Authentication token. Requires scope: `channels:write`- Returns:
this
.
-
name
public ChannelsJoinRequest.ChannelsJoinRequestBuilder name(String name)
Name of channel to join- Returns:
this
.
-
validate
public ChannelsJoinRequest.ChannelsJoinRequestBuilder validate(boolean validate)
Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.- Returns:
this
.
-
build
public ChannelsJoinRequest build()
-
-