Fix missing await
This commit is contained in:
1
bot.py
1
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)
|
||||
|
||||
Reference in New Issue
Block a user