summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go
index 93b5a6d2e..f1b9ec01f 100644
--- a/plugin/api.go
+++ b/plugin/api.go
@@ -155,6 +155,11 @@ type API interface {
// Minimum server version: 5.6
GetChannelsForTeamForUser(teamId, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError)
+ // GetChannelStats gets statistics for a channel.
+ //
+ // Minimum server version: 5.6
+ GetChannelStats(channelId string) (*model.ChannelStats, *model.AppError)
+
// GetDirectChannel gets a direct message channel.
GetDirectChannel(userId1, userId2 string) (*model.Channel, *model.AppError)