BotDiscordClient class
A DiscordClient implementation that uses the HTTP REST Bot API to upload images on a channel.
- Inheritance
-
- Object
- DiscordClient
- BotDiscordClient
Constructors
- BotDiscordClient({required String token, required Client httpClient})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
uploadImage(
{required DiscordUploadableImage image, required String channelId}) → Future< Either< RequestError, Uri> > -
Uploads an image to a Discord channel, specified in
channelId
parameter.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited