discordcdn library
Classes
- BotDiscordClient
- A DiscordClient implementation that uses the HTTP REST Bot API to upload images on a channel.
- ChannelNotFound
- Occurs when the response status code is 404; Not Found indicating that the channel could not be determined
- DiscordClient
- DiscordClient describes a general interface to interact with Discord
- DiscordUploadableImage
- Specifies an uploadable image to Discord
- InvalidBotToken
- Occurs when the provided Bot Token is not accepted by Discord API
- NetworkError
- Occurs when the connection between the client and the Discord API Server fails
- RequestError
- Base type for an error that can occur when consuming the Discord API
- UnknownError
- Occurs when the client can't understand Discord API
Mixins
- TraceableError
- Mixin that marks an error as traceable, meaning one can get the reason and stack trace for the error
Functions
-
withBotToken(
String token) → DiscordClient - Returns an instance of BotDiscordClient which takes on a token that authorizes the bot for requests.