summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-12-05 09:14:03 -0500
committerGitHub <noreply@github.com>2017-12-05 09:14:03 -0500
commit7a1f81cd52c4b58a058ae11e361a80ee3b24d141 (patch)
tree8845eba3280d1ac17a0f0014979e4a995a55e023 /plugin/api.go
parent46f51197fb8197fe8a5468c86aad64eeab815bad (diff)
downloadchat-7a1f81cd52c4b58a058ae11e361a80ee3b24d141.tar.gz
chat-7a1f81cd52c4b58a058ae11e361a80ee3b24d141.tar.bz2
chat-7a1f81cd52c4b58a058ae11e361a80ee3b24d141.zip
Add GetChannelMember method to plugin API (#7930)
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go3
1 files changed, 3 insertions, 0 deletions
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)