MCPcopy Create free account
hub / github.com/Botloader/botloader / description

Method description

components/webapi/src/routes/ws.rs:399–412  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

397 }
398
399 fn description(&self) -> &'static str {
400 match self {
401 WsCloseReason::ClientDisconnected => "client disconnected",
402 WsCloseReason::InternalError => "internal error occured",
403 WsCloseReason::JsonDecodeError => "failed decoding json payload",
404 WsCloseReason::JsonEncodeError => "failed encoding json payload",
405 WsCloseReason::BadToken => "bad auth token provided",
406 WsCloseReason::NotAuthorized => "not authorized",
407 WsCloseReason::AuthWhenAuthorized => "already authorized",
408 WsCloseReason::UnknownGuild => "unknown guild",
409 WsCloseReason::GuildMissingAccess => "missing access to guild",
410 WsCloseReason::BotRpcError => "error on communication with bot",
411 }
412 }
413}
414
415struct GuildLogStream {

Callers 3

fromMethod · 0.80
handle_get_guildFunction · 0.80
closeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected