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