DiscordPHP-Http Documentation

Exceptions

Table of Contents

Classes

BadRequestException
Thrown when a request to Discord's REST API returned ClientErrorResponse.
ContentTooLongException
Thrown when the Discord servers return `content longer than 2000 characters` after a REST request. The user must use WebSockets to obtain this data if they need it.
InvalidTokenException
Thrown when an invalid token is provided to a Discord endpoint.
MethodNotAllowedException
Thrown when a request to Discord's REST API method is invalid.
NoPermissionsException
Thrown when you do not have permissions to do something.
NotFoundException
Thrown when a 404 Not Found response is received.
RateLimitException
Thrown when a request to Discord's REST API got rate limited and the library does not know how to handle.
RequestFailedException
Thrown when a request to Discord's REST API fails.
On this page

Search results