summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorJason Mojica <jason@jasonmojica.net>2018-10-25 13:54:10 +0000
committerHarrison Healey <harrisonmhealey@gmail.com>2018-10-25 09:54:10 -0400
commita9ee2e01c5584396000b0368fe8366d60ab29534 (patch)
tree679de0fef10d6910160f9fbebdd0b2587872c366 /plugin/api.go
parent54b7a29581c8d93c876a2a5840b05410f2a35fb9 (diff)
downloadchat-a9ee2e01c5584396000b0368fe8366d60ab29534.tar.gz
chat-a9ee2e01c5584396000b0368fe8366d60ab29534.tar.bz2
chat-a9ee2e01c5584396000b0368fe8366d60ab29534.zip
GH-9617 Add plugin API for GetEmoji method (#9656)
* Add GetEmoji plugin api * Add server version
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 0f481784e..93b5a6d2e 100644
--- a/plugin/api.go
+++ b/plugin/api.go
@@ -254,6 +254,11 @@ type API interface {
// Minimum server version: 5.6
GetEmojiByName(name string) (*model.Emoji, *model.AppError)
+ // GetEmoji returns a custom emoji based on the emojiId string.
+ //
+ // Minimum server version: 5.6
+ GetEmoji(emojiId string) (*model.Emoji, *model.AppError)
+
// CopyFileInfos duplicates the FileInfo objects referenced by the given file ids,
// recording the given user id as the new creator and returning the new set of file ids.
//