diff options
author | 2021-03-06 06:42:25 -0800 | |
---|---|---|
committer | 2021-03-06 06:42:25 -0800 | |
commit | 71224812a6fbc297c395163184ab51f606159db3 (patch) | |
tree | 698bd75a90b9fbcec398884e6708dab0817ff1bf | |
parent | Merge pull request #1449 from python-discord/json-logging (diff) | |
parent | Merge branch 'master' into Don't-suggest-when-a-tag-is-on-cooldown (diff) |
Merge pull request #1392 from ChrisLovering/Don't-suggest-when-a-tag-is-on-cooldown
Don't fuzzy search for tags when tag is on cooldown
-rw-r--r-- | bot/exts/info/tags.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/exts/info/tags.py b/bot/exts/info/tags.py index 00b4d1a78..bb91a8563 100644 --- a/bot/exts/info/tags.py +++ b/bot/exts/info/tags.py @@ -189,7 +189,7 @@ class Tags(Cog): If a tag is not specified, display a paginated embed of all tags. Tags are on cooldowns on a per-tag, per-channel basis. If a tag is on cooldown, display - nothing and return False. + nothing and return True. """ def _command_on_cooldown(tag_name: str) -> bool: """ @@ -217,7 +217,7 @@ class Tags(Cog): f"{ctx.author} tried to get the '{tag_name}' tag, but the tag is on cooldown. " f"Cooldown ends in {time_left:.1f} seconds." ) - return False + return True if tag_name is not None: temp_founds = self._get_tag(tag_name) @@ -285,7 +285,8 @@ class Tags(Cog): """ Get a specified tag, or a list of all tags if no tag is specified. - Returns False if a tag is on cooldown, or if no matches are found. + Returns True if something can be sent, or if the tag is on cooldown. + Returns False if no matches are found. """ return await self.display_tag(ctx, tag_name) |