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 ChannelsHistoryRequest
build()
ChannelsHistoryRequest.ChannelsHistoryRequestBuilder
channel(String channel)
Channel to fetch history for.ChannelsHistoryRequest.ChannelsHistoryRequestBuilder
count(Integer count)
Number of messages to return, between 1 and 1000.ChannelsHistoryRequest.ChannelsHistoryRequestBuilder
inclusive(boolean inclusive)
Include messages with latest or oldest timestamp in results.ChannelsHistoryRequest.ChannelsHistoryRequestBuilder
latest(String latest)
End of time range of messages to include in results.ChannelsHistoryRequest.ChannelsHistoryRequestBuilder
oldest(String oldest)
Start of time range of messages to include in results.ChannelsHistoryRequest.ChannelsHistoryRequestBuilder
token(String token)
Authentication token.String
toString()
ChannelsHistoryRequest.ChannelsHistoryRequestBuilder
unreads(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
-