Class ChannelsHistoryRequest.ChannelsHistoryRequestBuilder
java.lang.Object
com.slack.api.methods.request.channels.ChannelsHistoryRequest.ChannelsHistoryRequestBuilder
- Enclosing class:
- ChannelsHistoryRequest
public static class ChannelsHistoryRequest.ChannelsHistoryRequestBuilder extends Object
-
Method Summary
Modifier and Type Method Description ChannelsHistoryRequestbuild()ChannelsHistoryRequest.ChannelsHistoryRequestBuilderchannel(String channel)Channel to fetch history for.ChannelsHistoryRequest.ChannelsHistoryRequestBuildercount(Integer count)Number of messages to return, between 1 and 1000.ChannelsHistoryRequest.ChannelsHistoryRequestBuilderinclusive(boolean inclusive)Include messages with latest or oldest timestamp in results.ChannelsHistoryRequest.ChannelsHistoryRequestBuilderlatest(String latest)End of time range of messages to include in results.ChannelsHistoryRequest.ChannelsHistoryRequestBuilderoldest(String oldest)Start of time range of messages to include in results.ChannelsHistoryRequest.ChannelsHistoryRequestBuildertoken(String token)Authentication token.StringtoString()ChannelsHistoryRequest.ChannelsHistoryRequestBuilderunreads(boolean unreads)Include `unread_count_display` in the output?
-
Method Details
-
token
Authentication token. Requires scope: `channels:history`- Returns:
this.
-
channel
Channel to fetch history for.- Returns:
this.
-
latest
End of time range of messages to include in results.- Returns:
this.
-
oldest
Start of time range of messages to include in results.- Returns:
this.
-
inclusive
Include messages with latest or oldest timestamp in results.- Returns:
this.
-
count
Number of messages to return, between 1 and 1000.- Returns:
this.
-
unreads
Include `unread_count_display` in the output?- Returns:
this.
-
build
-
toString
-