1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Don't paginate if there are no tags

This commit is contained in:
Phxntxm 2017-03-25 22:46:36 -05:00
parent 5f9283fff9
commit 5cf232edf6

View file

@ -20,7 +20,7 @@ class Tags:
EXAMPLE: !tags
RESULT: All tags setup on this server"""
tags = await utils.get_content('tags', str(ctx.message.guild.id))
if tags:
if tags and len(tags['tags']) > 0:
entries = [t['trigger'] for t in tags['tags']]
pages = utils.Pages(self.bot, message=ctx.message, entries=entries)
await pages.paginate()