Skip to content

Commit

Permalink
Activity is now an emoji and emojiId resolveable
Browse files Browse the repository at this point in the history
  • Loading branch information
SinisterRectus committed Dec 5, 2019
1 parent 96ea7c3 commit a98f587
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/client/Resolver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ function Resolver.emojiId(obj)
return obj.id
elseif isInstance(obj, classes.Reaction) then
return obj.emojiId
elseif isInstance(obj, classes.Activity) then
return obj.emojiId
end
return int(obj)
end
Expand Down Expand Up @@ -130,6 +132,8 @@ function Resolver.emoji(obj)
return obj.hash
elseif isInstance(obj, classes.Reaction) then
return obj.emojiHash
elseif isInstance(obj, classes.Activity) then
return obj.emojiHash
end
return tostring(obj)
end
Expand Down

0 comments on commit a98f587

Please sign in to comment.