deleteReaction method
Deletes reaction key
from message
ChannelEventHandler.onReactionUpdated callback will be invoked with event after completion, and you should apply the event to the message by calling BaseMessage.applyReactionEvent
Implementation
Future<ReactionEvent> deleteReaction(BaseMessage message, String key) async {
if (message.channelUrl != channelUrl) {
throw InvalidParameterError();
}
if (key.isEmpty) {
throw InvalidParameterError();
}
final res = await _sdk.api.send<ReactionEvent>(
ChannelReactionDeleteRequest(
channelType: message.channelType,
channelUrl: message.channelUrl,
messageId: message.messageId,
key: key,
),
);
res.messageId = message.messageId;
return res;
}