aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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])