MCPcopy
hub / github.com/mattermost/mattermost / Get

Method Get

server/public/pluginapi/bot.go:28–32  ·  view source on GitHub ↗

Get returns a bot by botUserID. Minimum server version: 5.10

(botUserID string, includeDeleted bool)

Source from the content-addressed store, hash-verified

26//
27// Minimum server version: 5.10
28func (b *BotService) Get(botUserID string, includeDeleted bool) (*model.Bot, error) {
29 bot, appErr := b.api.GetBot(botUserID, includeDeleted)
30
31 return bot, normalizeAppErr(appErr)
32}
33
34// BotListOption is an option to configure a bot List() request.
35type BotListOption func(*model.BotGetOptions)

Callers

nothing calls this directly

Calls 2

normalizeAppErrFunction · 0.70
GetBotMethod · 0.65

Tested by

no test coverage detected