From baa4d252b72de1e25bceb15721b475ee9724d47b Mon Sep 17 00:00:00 2001 From: Cam Caswell Date: Fri, 24 Sep 2021 23:00:40 -0400 Subject: Don't change board embed color Can't edit that embed --- bot/exts/fun/duck_game.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'bot') diff --git a/bot/exts/fun/duck_game.py b/bot/exts/fun/duck_game.py index 8b5338f4..f97c712d 100644 --- a/bot/exts/fun/duck_game.py +++ b/bot/exts/fun/duck_game.py @@ -304,13 +304,6 @@ class DuckGamesDirector(commands.Cog): scoreboard_embed.description = scoreboard await channel.send(embed=scoreboard_embed) - board_embed, = game.board_msg.embeds - embed_as_dict = board_embed.to_dict() # Cannot set embed color after initialization - embed_as_dict["color"] = discord.Color.red().value - board_embed = discord.Embed.from_dict(embed_as_dict) - await self.edit_embed_with_image(game.board_msg, board_embed) - - found_embed, = game.found_msg.embeds missed = [ans for ans in game.solutions if ans not in game.claimed_answers] if missed: missed_text = "Flights everyone missed:\n" + "\n".join(f"{ans}" for ans in missed) -- cgit v1.2.3