aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-05-07 19:19:46 -0700
committerGravatar MarkKoz <[email protected]>2020-06-13 11:21:08 -0700
commitcad6957b233ed905ed76d066517866255c8ae7a4 (patch)
tree67c21a8c7d6298bafa40bad3f0d7c4f52dd2024f
parentCode block: add function to create the instructions embed (diff)
Code block: fix message content being edited instead of the embed
-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 ca787b181..80d5adff3 100644
--- a/bot/cogs/codeblock/cog.py
+++ b/bot/cogs/codeblock/cog.py
@@ -160,4 +160,4 @@ class CodeBlockCog(Cog, name="Code Block"):
del self.codeblock_message_ids[payload.message_id]
else:
log.trace("Message edited but still has invalid code blocks; editing the instructions.")
- await bot_message.edit(content=instructions)
+ await bot_message.edit(embed=self.create_embed(instructions))