BotDiscordClient class

A DiscordClient implementation that uses the HTTP REST Bot API to upload images on a channel.

Inheritance

Constructors

BotDiscordClient({required String token, required Client httpClient})

Properties

apiUri Uri
Returns an Uri instance that points to the host of Discord API.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
final

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