[MM-34076] Add Plugin API User custom status (#17435)

* add missing client for custom user status

* add custom user status plugin api

* update based on feedback review

* add GetCustomStatus

* update interfaces
Этот коммит содержится в:
Carlos Tadeu Panato Junior
2021-11-10 17:11:20 +01:00
коммит произвёл GitHub
родитель 0a3e7f4d55
Коммит bb5a74a42b
13 изменённых файлов: 290 добавлений и 4 удалений

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

@@ -257,6 +257,19 @@ type API interface {
// Minimum server version: 5.8
UpdateUserActive(userID string, active bool) *model.AppError
// UpdateUserCustomStatus will set a user's custom status until the user, or another integration/plugin, clear it or update the custom status.
// The custom status have two parameters: emoji icon and custom text.
//
// @tag User
// Minimum server version: 5.36
UpdateUserCustomStatus(userID string, customStatus *model.CustomStatus) *model.AppError
// RemoveUserCustomStatus will remove a user's custom status.
//
// @tag User
// Minimum server version: 5.36
RemoveUserCustomStatus(userID string) *model.AppError
// GetUsersInChannel returns a page of users in a channel. Page counting starts at 0.
// The sortBy parameter can be: "username" or "status".
//