Skip to content

Commit

Permalink
Fixed the Reaction.emoji getter being undefined (#314)
Browse files Browse the repository at this point in the history
* Fixed the Reaction.emoji getter being undefined

* Update CHANGELOG.md
  • Loading branch information
RiskoZoSlovenska authored Oct 25, 2021
1 parent ac377a3 commit 2786df5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down
4 changes: 4 additions & 0 deletions libs/containers/Reaction.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2786df5

Please sign in to comment.