diff options
| author | 2020-05-07 19:19:46 -0700 | |
|---|---|---|
| committer | 2020-06-13 11:21:08 -0700 | |
| commit | cad6957b233ed905ed76d066517866255c8ae7a4 (patch) | |
| tree | 67c21a8c7d6298bafa40bad3f0d7c4f52dd2024f | |
| parent | Code 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.py | 2 |
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)) |