Fix missing await
This commit is contained in:
1 parent
812bacfa4e
commit
2504a65b61
1 file changed
+1
@@ -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