Errors¶
discord_http.errors module¶
- exception discord_http.errors.AutomodBlock(r)¶
Bases:
HTTPExceptionRaised whenever a HTTP request was blocked by Discord.
- Parameters:
r (HTTPResponse)
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- request¶
The HTTP request that caused the exception.
- exception discord_http.errors.BotMissingPermissions(perms)¶
Bases:
CheckFailedRaised whenever a bot is missing permissions.
- Parameters:
perms (Permissions)
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception discord_http.errors.CheckFailed¶
Bases:
DiscordExceptionRaised whenever a check fails.
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception discord_http.errors.CommandError¶
Bases:
ExceptionRaised whenever a command error occurs.
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception discord_http.errors.CommandOnCooldown(cooldown, retry_after)¶
Bases:
CheckFailedRaised whenever a command is on cooldown.
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception discord_http.errors.DiscordException¶
Bases:
ExceptionBase exception for discord_http.
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception discord_http.errors.DiscordServerError(r)¶
Bases:
HTTPExceptionRaised whenever an unexpected HTTP error occurs.
- Parameters:
r (HTTPResponse)
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- request¶
The HTTP request that caused the exception.
- exception discord_http.errors.Forbidden(r)¶
Bases:
HTTPExceptionRaised whenever a HTTP request returns 403.
- Parameters:
r (HTTPResponse)
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- request¶
The HTTP request that caused the exception.
- exception discord_http.errors.HTTPException(r)¶
Bases:
DiscordExceptionBase exception for HTTP requests.
- Parameters:
r (HTTPResponse)
- request¶
The HTTP request that caused the exception.
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception discord_http.errors.InvalidMember¶
Bases:
CheckFailedRaised whenever a user was found, but not a member of a guild.
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception discord_http.errors.NotFound(r)¶
Bases:
HTTPExceptionRaised whenever a HTTP request returns 404.
- Parameters:
r (HTTPResponse)
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- request¶
The HTTP request that caused the exception.
- exception discord_http.errors.Ratelimited(r)¶
Bases:
HTTPExceptionRaised whenever a HTTP request returns 429, but without a Retry-After header.
- Parameters:
r (HTTPResponse)
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- request¶
The HTTP request that caused the exception.
- exception discord_http.errors.UserMissingPermissions(perms)¶
Bases:
CheckFailedRaised whenever a user is missing permissions.
- Parameters:
perms (Permissions)
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.