From 01fab86d759c135ad87d65c29be7ff1d59431d40 Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Tue, 12 Nov 2024 00:14:21 +0100 Subject: [PATCH] Add is_super() method to Reaction --- discord/reaction.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/discord/reaction.py b/discord/reaction.py index 9fd933b0a57a..dd531790890a 100644 --- a/discord/reaction.py +++ b/discord/reaction.py @@ -114,6 +114,13 @@ def is_custom_emoji(self) -> bool: """:class:`bool`: If this is a custom emoji.""" return not isinstance(self.emoji, str) + def is_super(self) -> bool: + """:class:`bool`: Whether this reaction is a super reaction. + + .. versionadded:: 2.5 + """ + return self.normal_count == 0 and self.burst_count > 0 + def __eq__(self, other: object) -> bool: return isinstance(other, self.__class__) and other.emoji == self.emoji