diff options
| author | 2019-01-03 12:55:08 -0600 | |
|---|---|---|
| committer | 2019-01-03 12:55:08 -0600 | |
| commit | bf4bef4aba69dd85ec174a14690efbbfdb824515 (patch) | |
| tree | db526116b8dd4f98afe72d030739bb970cc419b6 | |
| parent | Merge pull request #229 from python-discord/defcon-channel-title (diff) | |
Hopefully the final fix to the code block on-edit deletion thing
Signed-off-by: Daniel Brown <[email protected]>
| -rw-r--r-- | bot/cogs/bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py index b684ad886..b419dad58 100644 --- a/bot/cogs/bot.py +++ b/bot/cogs/bot.py @@ -372,7 +372,7 @@ class Bot: return # Retrieve channel and message objects for use later - channel = self.bot.get_channel(payload.data.get("channel_id")) + channel = self.bot.get_channel(int(payload.data.get("channel_id"))) user_message = await channel.get_message(payload.message_id) # Checks to see if the user has corrected their codeblock. If it's fixed, has_fixed_codeblock will be None |