aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-05-13 18:51:31 -0700
committerGravatar MarkKoz <[email protected]>2020-06-14 13:11:29 -0700
commitda816921db5295a33d7af918f329e770c03d73a2 (patch)
tree2f3ecb92ae1041d132fda2776d1319893125c875
parentCode block: add configurable variables (diff)
Code block: simplify retrieval of channel ID from payload
-rw-r--r--bot/cogs/codeblock/cog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/codeblock/cog.py b/bot/cogs/codeblock/cog.py
index e3917751b..20b86eb24 100644
--- a/bot/cogs/codeblock/cog.py
+++ b/bot/cogs/codeblock/cog.py
@@ -72,7 +72,7 @@ class CodeBlockCog(Cog, name="Code Block"):
deleted either manually via a reaction or automatically by a timer.
"""
log.trace(f"Retrieving instructions message for ID {payload.message_id}")
- channel = self.bot.get_channel(int(payload.data.get("channel_id")))
+ channel = self.bot.get_channel(payload.channel_id)
try:
return await channel.fetch_message(self.codeblock_message_ids[payload.message_id])