summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorCharles Kenney <Charlesc.kenney@gmail.com>2018-10-15 17:09:30 -0400
committerChristopher Speller <crspeller@gmail.com>2018-10-15 14:09:30 -0700
commit1cdf717446d79191701949a97557f801681bc278 (patch)
tree29825848ab5bded4baf307df238bc71e26cf31e7 /plugin/api.go
parentb843774de841f71e346bcd9e30b86fecddec3318 (diff)
downloadchat-1cdf717446d79191701949a97557f801681bc278.tar.gz
chat-1cdf717446d79191701949a97557f801681bc278.tar.bz2
chat-1cdf717446d79191701949a97557f801681bc278.zip
add GetEmojiByName method to plugin API (#9641)
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 713fab1b4..a4d643187 100644
--- a/plugin/api.go
+++ b/plugin/api.go
@@ -200,6 +200,9 @@ type API interface {
// GetProfileImage gets user's profile image
GetProfileImage(userId string) ([]byte, *model.AppError)
+ // GetEmojiByName gets an emoji by it's name.
+ GetEmojiByName(name 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.
//