aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/info/tags.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/bot/exts/info/tags.py b/bot/exts/info/tags.py
index fb7f60aa7..beabade58 100644
--- a/bot/exts/info/tags.py
+++ b/bot/exts/info/tags.py
@@ -398,16 +398,17 @@ class Tags(Cog):
tag_group = tag_name_or_group
embed = await self.get_tag_embed(ctx, TagIdentifier(tag_group, tag_name))
- if embed is not None:
- if embed is not COOLDOWN.obj:
- await wait_for_deletion(
- await ctx.send(embed=embed),
- (ctx.author.id,)
- )
- return True
- else:
+ if embed is None:
return False
+ if embed is not COOLDOWN.obj:
+ await wait_for_deletion(
+ await ctx.send(embed=embed),
+ (ctx.author.id,)
+ )
+ # A valid tag was found and was either sent, or is on cooldown
+ return True
+
def setup(bot: Bot) -> None:
"""Load the Tags cog."""