Skip to content

Commit 6f61da0

Browse files
committed
Moved the ctx.send variant of get_command_ctx to the else branch
1 parent 5a42d7c commit 6f61da0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

bot/exts/info/tags.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,11 @@ async def get_command_ctx(
323323
await message_reference.reply(embed=embed),
324324
(ctx.author.id,)
325325
)
326-
await wait_for_deletion(
327-
await ctx.send(embed=embed),
328-
(ctx.author.id,)
329-
)
326+
else:
327+
await wait_for_deletion(
328+
await ctx.send(embed=embed),
329+
(ctx.author.id,)
330+
)
330331
# A valid tag was found and was either sent, or is on cooldown
331332
return True
332333

0 commit comments

Comments
 (0)