diff --git a/CHANGELOG.md b/CHANGELOG.md index f51acdfd..8cacffa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -617,6 +617,7 @@ Note: Technically a new class that implements the former `UserPresence` features - Added `getMessage` method - Added `getEmojiURL` method - Added `toString` method +- Added `emoji` property - Added `channelId` property - Added `messageId` property - Added `hash` property (evaluates `emoji.id or emoji.name`) diff --git a/libs/containers/Reaction.lua b/libs/containers/Reaction.lua index 972e094b..846f0c0d 100644 --- a/libs/containers/Reaction.lua +++ b/libs/containers/Reaction.lua @@ -38,6 +38,10 @@ function Reaction:delete(userId) return self.client:removeReaction(self.channelId, self.messageId, self.emoji.hash, userId) end +function get:emoji() + return self._emoji +end + function get:me() return self._me end