From 255f9c1608a10d6b0e5619fdff70f864f7128f91 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Mon, 14 Dec 2020 10:02:14 +0100 Subject: [PATCH] add enforce_unique: true in send reaction --- lib/src/reaction_picker.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/reaction_picker.dart b/lib/src/reaction_picker.dart index ff23b8a3..b019ee79 100644 --- a/lib/src/reaction_picker.dart +++ b/lib/src/reaction_picker.dart @@ -136,7 +136,9 @@ class _ReactionPickerState extends State void sendReaction(BuildContext context, String reactionType) { StreamChannel.of(context) .channel - .sendReaction(widget.message, reactionType); + .sendReaction(widget.message, reactionType, extraData: { + 'enforce_unique': true, + }); pop(); }