diff options
| author | 2020-02-19 23:50:49 +0200 | |
|---|---|---|
| committer | 2020-02-19 23:50:49 +0200 | |
| commit | 4ebefe42aca23532233136b0fd51e4ef9633d593 (patch) | |
| tree | 4bf8c155e30b331e824e9304b190a02afab150f7 | |
| parent | Rearrange, NoneTypes handling (diff) | |
Return Logic Fixed
The returned value was changed from True to False
If we didn't return True (sent the tag) throughout the code
It means we didn't send anything, we should return False
| -rw-r--r-- | bot/cogs/tags.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/cogs/tags.py b/bot/cogs/tags.py index 4ee40a7e3..8082a5fb7 100644 --- a/bot/cogs/tags.py +++ b/bot/cogs/tags.py @@ -101,7 +101,6 @@ class Tags(Cog): tag_name - a string representing the searched tag name Returns False if no tag is not found or the tag is on cooldown - Return True if found and sent a tag """ @@ -171,7 +170,7 @@ class Tags(Cog): ) return True - return True + return False @tags_group.command(name='get', aliases=('show', 'g')) async def _get_command(self, ctx: Context, *, tag_name: TagNameConverter = None) -> None: |