diff options
author | 2021-10-02 00:15:44 -0400 | |
---|---|---|
committer | 2021-10-02 00:15:44 -0400 | |
commit | 97ccd35d27946abb39b86befdeb36364fea8b5ce (patch) | |
tree | 60cf790dfc7b4acf24f01548cc2ad7a2078ee40d /bot/exts/fun/duck_game.py | |
parent | Change docstring to be more help with the help command (diff) |
Make setting the old embed description cleaner
Diffstat (limited to 'bot/exts/fun/duck_game.py')
-rw-r--r-- | bot/exts/fun/duck_game.py | 4 |
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) |