add UpdateUserRoles to plugin api (#26615)

* ProfileImageBytes for EnsureBotOptions

* leverage plugintest.NewAPI

* fix linting

* add UpdateUserRoles to plugin api
Этот коммит содержится в:
Jesse Hallam
2024-03-29 19:22:54 -03:00
коммит произвёл GitHub
родитель f34fac7731
Коммит acbaf4c283
7 изменённых файлов: 137 добавлений и 0 удалений

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

@@ -1293,6 +1293,13 @@ type API interface {
// @tag SharedChannels
// Minimum server version: 9.5
UninviteRemoteFromChannel(channelID string, remoteID string) error
// UpdateUserRoles updates the role for a user.
//
// @tag Team
// @tag User
// Minimum server version: 9.8
UpdateUserRoles(userID, newRoles string) (*model.User, *model.AppError)
}
var handshake = plugin.HandshakeConfig{