From 7a1f81cd52c4b58a058ae11e361a80ee3b24d141 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 5 Dec 2017 09:14:03 -0500 Subject: Add GetChannelMember method to plugin API (#7930) --- plugin/api.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/api.go') diff --git a/plugin/api.go b/plugin/api.go index 4bcfd112b..fee55eeff 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -70,6 +70,9 @@ type API interface { // UpdateChannel updates a channel. UpdateChannel(channel *model.Channel) (*model.Channel, *model.AppError) + // GetChannelMember gets a channel membership for a user. + GetChannelMember(channelId, userId string) (*model.ChannelMember, *model.AppError) + // CreatePost creates a post. CreatePost(post *model.Post) (*model.Post, *model.AppError) -- cgit v1.2.3-1-g7c22