diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py index 1ee1fc8..121bd7c 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -938,12 +938,12 @@ class Message(object): found = False for r in self.message_json["reactions"]: if r["name"] == reaction: - r["users"].append(user) + r["users"].add(user) found = True if not found: - self.message_json["reactions"].append({u"name": reaction, u"users": [user]}) + self.message_json["reactions"].append({u"name": reaction, u"users": {user}}) else: - self.message_json["reactions"] = [{u"name": reaction, u"users": [user]}] + self.message_json["reactions"] = [{u"name": reaction, u"users": {user}}] def remove_reaction(self, reaction, user): if "reactions" in self.message_json: |