diff options
| author | 2021-08-26 15:41:16 -0400 | |
|---|---|---|
| committer | 2021-08-26 15:41:16 -0400 | |
| commit | aec70eef7284fcac3770910148dd832f9ad5788d (patch) | |
| tree | f537d27157f6efb03942a78485da0f6a535beebf | |
| parent | Use MODERATION_ROLES for stop command (diff) | |
Make some return type annotations accurate
| -rw-r--r-- | bot/exts/evergreen/duck_game.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/duck_game.py b/bot/exts/evergreen/duck_game.py index b83d5951..51e7a98a 100644 --- a/bot/exts/evergreen/duck_game.py +++ b/bot/exts/evergreen/duck_game.py @@ -341,14 +341,14 @@ class DuckGamesDirector(commands.Cog): embed.set_footer( text="Tip: using Discord's compact message display mode can help keep the board on the screen" ) - await ctx.send(file=file, embed=embed) + return await ctx.send(file=file, embed=embed) @staticmethod - async def edit_embed_with_image(msg: discord.Message, embed: discord.Embed) -> discord.Message: + async def edit_embed_with_image(msg: discord.Message, embed: discord.Embed) -> None: """Edit an embed without the attached image going wonky.""" attach_name = urlparse(embed.image.url).path.split("/")[-1] embed.set_image(url=f"attachment://{attach_name}") - return await msg.edit(embed=embed) + await msg.edit(embed=embed) def setup(bot: Bot) -> None: |