diff options
| author | 2021-01-31 15:32:30 +0000 | |
|---|---|---|
| committer | 2021-01-31 15:32:30 +0000 | |
| commit | 085f8ac801316c6d8ad91a3b63b3e755c3a6aea3 (patch) | |
| tree | 1455f0ce3e49cc819fb86b07554b378a76f21909 | |
| parent | Merge PR #1388 - gracefully handle non-existing infractions (diff) | |
return true when tag is on cd
| -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..e0556ee30 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 send, or the tag is on cooldown + Returns False if no matches are found. """ return await self.display_tag(ctx, tag_name) |