MCPcopy
hub / github.com/mattermost/mattermost / GetBot

Method GetBot

server/channels/app/plugin_api.go:1175–1177  ·  view source on GitHub ↗
(userID string, includeDeleted bool)

Source from the content-addressed store, hash-verified

1173}
1174
1175func (api *PluginAPI) GetBot(userID string, includeDeleted bool) (*model.Bot, *model.AppError) {
1176 return api.app.GetBot(api.ctx, userID, includeDeleted)
1177}
1178
1179func (api *PluginAPI) GetBots(options *model.BotGetOptions) ([]*model.Bot, *model.AppError) {
1180 bots, err := api.app.GetBots(api.ctx, options)

Callers

nothing calls this directly

Implementers 5

apiRPCClientserver/public/plugin/client_rpc.go
apiRPCServerserver/public/plugin/client_rpc.go
apiTimerLayerserver/public/plugin/api_timer_layer_g
APIserver/public/plugin/plugintest/api.go
PluginAPIserver/channels/app/plugin_api.go

Calls 1

GetBotMethod · 0.65

Tested by

no test coverage detected