Skip to content

Commit

Permalink
Fixed a minor bug where the bot assigns itself channel roles through …
Browse files Browse the repository at this point in the history
…reactions.
  • Loading branch information
rhliang committed May 8, 2018
1 parent 6879db5 commit 40372ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/role_reaction_subscription_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ async def reaction_clicked(self, payload):
:return:
"""
if payload.user_id == self.bot.user.id:
pass
return
guild = self.bot.get_guild(payload.guild_id)
subscription_info = self.db.get_subscription_info_by_message_id(guild, payload.message_id)
# Do nothing if the guild doesn't have subscription for this role configured.
Expand Down

0 comments on commit 40372ba

Please sign in to comment.