MM-16872 - Extend Plugin API to set LHS bot icon (#11601)
* MM-16872 - Extend Plugin API to set LHS bot icon * MM-16872 - Using ReadSeeker as opposed to Reader for reading svg image file * MM-16872 - PR feedback * MM-16872 - Using userId rather than bot.UserId * MM-16872 - Minor stylistic changes * MM-16872 - Removing DriverName check
Этот коммит содержится в:
@@ -569,6 +569,22 @@ type API interface {
|
||||
//
|
||||
// Minimum server version: 5.10
|
||||
PermanentDeleteBot(botUserId string) *model.AppError
|
||||
|
||||
// GetBotIconImage gets LHS bot icon image.
|
||||
//
|
||||
// Minimum server version: 5.14
|
||||
GetBotIconImage(botUserId string) ([]byte, *model.AppError)
|
||||
|
||||
// SetBotIconImage sets LHS bot icon image.
|
||||
// Icon image must be SVG format, all other formats are rejected.
|
||||
//
|
||||
// Minimum server version: 5.14
|
||||
SetBotIconImage(botUserId string, data []byte) *model.AppError
|
||||
|
||||
// DeleteBotIconImage deletes LHS bot icon image.
|
||||
//
|
||||
// Minimum server version: 5.14
|
||||
DeleteBotIconImage(botUserId string) *model.AppError
|
||||
}
|
||||
|
||||
var handshake = plugin.HandshakeConfig{
|
||||
|
||||
Ссылка в новой задаче
Block a user