$BotClient class

Constructors

$BotClient($Client _rootClient)
Creates a new DynamiteClient for bot requests.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$deleteReaction_Request({required String reaction, required String token, required int messageId, BotDeleteReactionApiVersion? apiVersion, bool? oCSAPIRequest}) → Request
Deletes a reaction from a chat message.
$deleteReaction_Serializer() → DynamiteSerializer<BotDeleteReactionResponseApplicationJson, void>
Builds a serializer to parse the response of $deleteReaction_Request.
$disableBot_Request({required String token, required int botId, BotDisableBotApiVersion? apiVersion, bool? oCSAPIRequest}) → Request
Disables a bot.
$disableBot_Serializer() → DynamiteSerializer<BotDisableBotResponseApplicationJson, void>
Builds a serializer to parse the response of $disableBot_Request.
$enableBot_Request({required String token, required int botId, BotEnableBotApiVersion? apiVersion, bool? oCSAPIRequest}) → Request
Enables a bot.
$enableBot_Serializer() → DynamiteSerializer<BotEnableBotResponseApplicationJson, void>
Builds a serializer to parse the response of $enableBot_Request.
$listBots_Request({required String token, BotListBotsApiVersion? apiVersion, bool? oCSAPIRequest}) → Request
List bots.
$listBots_Serializer() → DynamiteSerializer<BotListBotsResponseApplicationJson, void>
Builds a serializer to parse the response of $listBots_Request.
$react_Request({required String reaction, required String token, required int messageId, BotReactApiVersion? apiVersion, bool? oCSAPIRequest}) → Request
Adds a reaction to a chat message.
$react_Serializer() → DynamiteSerializer<BotReactResponseApplicationJson, void>
Builds a serializer to parse the response of $react_Request.
$sendMessage_Request({required String message, required String token, String? referenceId, int? replyTo, BotSendMessageSilent? silent, BotSendMessageApiVersion? apiVersion, bool? oCSAPIRequest}) → Request
Sends a new chat message to the given room.
$sendMessage_Serializer() → DynamiteSerializer<BotSendMessageResponseApplicationJson, void>
Builds a serializer to parse the response of $sendMessage_Request.
deleteReaction({required String reaction, required String token, required int messageId, BotDeleteReactionApiVersion? apiVersion, bool? oCSAPIRequest}) Future<DynamiteResponse<BotDeleteReactionResponseApplicationJson, void>>
Deletes a reaction from a chat message.
disableBot({required String token, required int botId, BotDisableBotApiVersion? apiVersion, bool? oCSAPIRequest}) Future<DynamiteResponse<BotDisableBotResponseApplicationJson, void>>
Disables a bot.
enableBot({required String token, required int botId, BotEnableBotApiVersion? apiVersion, bool? oCSAPIRequest}) Future<DynamiteResponse<BotEnableBotResponseApplicationJson, void>>
Enables a bot.
listBots({required String token, BotListBotsApiVersion? apiVersion, bool? oCSAPIRequest}) Future<DynamiteResponse<BotListBotsResponseApplicationJson, void>>
List bots.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
react({required String reaction, required String token, required int messageId, BotReactApiVersion? apiVersion, bool? oCSAPIRequest}) Future<DynamiteResponse<BotReactResponseApplicationJson, void>>
Adds a reaction to a chat message.
sendMessage({required String message, required String token, String? referenceId, int? replyTo, BotSendMessageSilent? silent, BotSendMessageApiVersion? apiVersion, bool? oCSAPIRequest}) Future<DynamiteResponse<BotSendMessageResponseApplicationJson, void>>
Sends a new chat message to the given room.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited