aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Cam Caswell <[email protected]>2021-09-24 22:59:24 -0400
committerGravatar Cam Caswell <[email protected]>2021-09-24 22:59:24 -0400
commit00c323222be2aeef010b15607f801b3066b5b1ed (patch)
tree86921c5e9aaae21f5d75a7ec3fc7c1cda5516b9f /bot
parentRemove workaround for editing image embed (diff)
Remove display_claimed_answer
Replaced with append_to_found_embed which is more general
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/fun/duck_game.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/bot/exts/fun/duck_game.py b/bot/exts/fun/duck_game.py
index a456c86b..8b5338f4 100644
--- a/bot/exts/fun/duck_game.py
+++ b/bot/exts/fun/duck_game.py
@@ -286,13 +286,6 @@ class DuckGamesDirector(commands.Cog):
found_embed.description = f"{old_desc.rstrip()}\n{text}"
await game.found_msg.edit(embed=found_embed)
- async def display_claimed_answer(self, game: DuckGame, author: discord.Member, answer: tuple[int]) -> None:
- """Add a claimed answer to the game embed."""
- async with game.editing_embed:
- found_embed, = game.found_msg.embeds
- found_embed.description = f"{found_embed.description}\n{str(answer):12s} - {author.display_name}"
- await game.found_msg.edit(embed=found_embed)
-
async def end_game(self, channel: discord.TextChannel, game: DuckGame, end_message: str) -> None:
"""Edit the game embed to reflect the end of the game and mark the game as not running."""
game.running = False