aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-10-04 12:53:23 +0000
committerGravatar Gareth Coles <[email protected]>2018-10-04 12:53:23 +0000
commit0b7e1d9bef3d529c679a99d5518ac8c935d8a134 (patch)
tree40972fdc6e12faf17e4586dfc30e39f2d9753bfe
parentMerge branch 'hemlock/format_block_adjustment' into 'master' (diff)
Hem's fixes.
Diffstat (limited to '')
-rw-r--r--bot/cogs/bot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py
index 2173475c3..acbc29f98 100644
--- a/bot/cogs/bot.py
+++ b/bot/cogs/bot.py
@@ -372,7 +372,7 @@ class Bot:
async def on_raw_reaction_add(self, payload: RawReactionActionEvent):
# Ignores reactions added by the bot or added to non-codeblock correction embed messages
# Also ignores the reaction if the user can't be loaded
- user = self.get_user(payload.user_id)
+ user = self.bot.get_user(payload.user_id)
if user is None:
return
if user.bot or payload.message_id not in self.codeblock_message_ids.values():
@@ -381,7 +381,7 @@ class Bot:
# Finds the appropriate bot message/ user message pair and assigns them to variables
for user_message_id, bot_message_id in self.codeblock_message_ids.items():
if bot_message_id == payload.message_id:
- channel = self.get_channel(payload.channel_id)
+ channel = self.bot.get_channel(payload.channel_id)
user_message = await channel.get_message(user_message_id)
bot_message = await channel.get_message(bot_message_id)
break