aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar camcaswell <[email protected]>2021-10-02 00:15:44 -0400
committerGravatar GitHub <[email protected]>2021-10-02 00:15:44 -0400
commit97ccd35d27946abb39b86befdeb36364fea8b5ce (patch)
tree60cf790dfc7b4acf24f01548cc2ad7a2078ee40d /bot
parentChange docstring to be more help with the help command (diff)
Make setting the old embed description cleaner
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/fun/duck_game.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/fun/duck_game.py b/bot/exts/fun/duck_game.py
index 95e12ced..10b03a49 100644
--- a/bot/exts/fun/duck_game.py
+++ b/bot/exts/fun/duck_game.py
@@ -280,9 +280,7 @@ class DuckGamesDirector(commands.Cog):
"""Append text to the claimed answers embed."""
async with game.editing_embed:
found_embed, = game.found_msg.embeds
- old_desc = found_embed.description
- if old_desc == discord.Embed.Empty:
- old_desc = ""
+ old_desc = found_embed.description or ""
found_embed.description = f"{old_desc.rstrip()}\n{text}"
await game.found_msg.edit(embed=found_embed)