pincer package

Submodules

pincer.exceptions module

exception pincer.exceptions.BadRequestError

Bases: pincer.exceptions.HTTPError

Error code 400.

exception pincer.exceptions.DisallowedIntentsError

Bases: pincer.exceptions.DispatchError

Invalid gateway intent got provided. Make sure your client has the enabled intent.

exception pincer.exceptions.DispatchError

Bases: pincer.exceptions.PincerError

Base exception class for all errors which are specifically related to the dispatcher.

exception pincer.exceptions.ForbiddenError

Bases: pincer.exceptions.HTTPError

Error code 403.

exception pincer.exceptions.GatewayError

Bases: pincer.exceptions.HTTPError

Error code 502.

exception pincer.exceptions.HTTPError

Bases: pincer.exceptions.PincerError

HTTP Exception base class.

exception pincer.exceptions.HeartbeatError

Bases: pincer.exceptions.DispatchError

Exception raised due to a problem with websocket heartbeat.

exception pincer.exceptions.InvalidTokenError(hint: Optional[str] = None)

Bases: pincer.exceptions.DispatchError, ValueError

exception pincer.exceptions.MethodNotAllowedError

Bases: pincer.exceptions.HTTPError

Error code 405.

exception pincer.exceptions.NotFoundError

Bases: pincer.exceptions.HTTPError

Error code 404.

exception pincer.exceptions.NotModifiedError

Bases: pincer.exceptions.HTTPError

Error code 304.

exception pincer.exceptions.PincerError

Bases: Exception

Base exception class for all Pincer errors.

exception pincer.exceptions.RateLimitError

Bases: pincer.exceptions.HTTPError

Error code 429.

exception pincer.exceptions.ServerError

Bases: pincer.exceptions.HTTPError

Error code 5xx. Status code is not in the discord API

exception pincer.exceptions.UnauthorizedError

Bases: pincer.exceptions.HTTPError

Error code 401.

exception pincer.exceptions.UnhandledException(specific: str)

Bases: pincer.exceptions.PincerError

Module contents

Pincer library

An asynchronous python API wrapper meant to replace discord.py

copyright
  1. 2021-present Pincer

license

MIT, see LICENSE for more details.