From 2504a65b61378751aa6d4a403986701bfc60126a Mon Sep 17 00:00:00 2001 From: Siphalor Date: Sat, 19 Dec 2020 13:27:55 +0100 Subject: [PATCH] Fix missing await --- bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.py b/bot.py index 5e48511..41ca325 100644 --- a/bot.py +++ b/bot.py @@ -124,6 +124,7 @@ async def random_message_command(ctx: commands.Context, channel: Optional[discor messages = async_filter(_is_message_allowed_for_operations, channel.history(limit=max_cnt)) messages = [item async for item in messages] if not messages: + await typing await ctx.channel.send("No valid messages found!") return msg: discord.Message = random.choice(messages)