From 1074a1c7ab0769b0da3525282fcabf961e2ddfce Mon Sep 17 00:00:00 2001 From: Jason Mojica Date: Thu, 25 Oct 2018 17:24:43 +0000 Subject: GH-9612 Add plugin API for GetChannelStats method (#9627) * Add GetChannelStats plugin api * Fix to return channel stats correctly * Add server version; Handle error idiomatically --- plugin/api.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin/api.go') 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) -- cgit v1.2.3-1-g7c22