Errors¶
discord_http.errors module¶
- exception discord_http.errors.AutomodBlock(r: HTTPResponse)[source]¶
Bases:
HTTPException
Raised whenever a HTTP request was blocked by Discord
- exception discord_http.errors.BotMissingPermissions(perms: Permissions)[source]¶
Bases:
CheckFailed
Raised whenever a bot is missing permissions
- exception discord_http.errors.CheckFailed[source]¶
Bases:
DiscordException
Raised whenever a check fails
- exception discord_http.errors.CommandOnCooldown(cooldown: Cooldown, retry_after: float)[source]¶
Bases:
CheckFailed
- exception discord_http.errors.DiscordException[source]¶
Bases:
Exception
Base exception for discord_http
- exception discord_http.errors.DiscordServerError(r: HTTPResponse)[source]¶
Bases:
HTTPException
Raised whenever an unexpected HTTP error occurs
- exception discord_http.errors.Forbidden(r: HTTPResponse)[source]¶
Bases:
HTTPException
Raised whenever a HTTP request returns 403
- exception discord_http.errors.HTTPException(r: HTTPResponse)[source]¶
Bases:
DiscordException
Base exception for HTTP requests
- exception discord_http.errors.InvalidMember[source]¶
Bases:
CheckFailed
Raised whenever a user was found, but not a member of a guild
- exception discord_http.errors.NotFound(r: HTTPResponse)[source]¶
Bases:
HTTPException
Raised whenever a HTTP request returns 404
- exception discord_http.errors.Ratelimited(r: HTTPResponse)[source]¶
Bases:
HTTPException
Raised whenever a HTTP request returns 429, but without a Retry-After header
- exception discord_http.errors.UserMissingPermissions(perms: Permissions)[source]¶
Bases:
CheckFailed
Raised whenever a user is missing permissions