[MM-17297] Extend EnsureBot helper to include bot images (#12153)

Этот коммит содержится в:
Alex Sahin
2019-11-15 04:19:00 +00:00
коммит произвёл Ben Schumacher
родитель 1ed1a6be0b
Коммит 6b0a88debf
5 изменённых файлов: 260 добавлений и 10 удалений

Просмотреть файл

@@ -14,10 +14,11 @@ import (
// Plugins obtain access to the Helpers by embedding MattermostPlugin.
type Helpers interface {
// EnsureBot either returns an existing bot user matching the given bot, or creates a bot user from the given bot.
// A profile image or icon image may be optionally passed in to be set for the existing or newly created bot.
// Returns the id of the resulting bot.
//
// Minimum server version: 5.10
EnsureBot(bot *model.Bot) (string, error)
EnsureBot(bot *model.Bot, options ...EnsureBotOption) (string, error)
// KVSetJSON stores a key-value pair, unique per plugin, marshalling the given value as a JSON string.
//