diff options
author | Jason Mojica <jason@jasonmojica.net> | 2018-10-25 13:54:10 +0000 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2018-10-25 09:54:10 -0400 |
commit | a9ee2e01c5584396000b0368fe8366d60ab29534 (patch) | |
tree | 679de0fef10d6910160f9fbebdd0b2587872c366 /plugin/api.go | |
parent | 54b7a29581c8d93c876a2a5840b05410f2a35fb9 (diff) | |
download | chat-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.go | 5 |
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. // |