Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
event reaction listener was creating a user object instead of a membe…
Browse files Browse the repository at this point in the history
…r object
  • Loading branch information
jgayfer committed Sep 10, 2017
1 parent 0b466a1 commit 03713b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ async def list_events(self, guild):
async def on_raw_reaction_add(self, emoji, message_id, channel_id, user_id):
"""If a reaction represents a user RSVP, update the DB and event message"""
channel = self.bot.get_channel(channel_id)
message = await channel.get_message(message_id)
user = self.bot.get_user(user_id)
guild = channel.guild
user = guild.get_member(user_id)
message = await channel.get_message(message_id)
manager = MessageManager(self.bot, user, channel)

# We check that the user is not the message author as to not count
Expand Down

0 comments on commit 03713b7

Please sign in to comment.