Skip to content

Commit

Permalink
Fixing tag list command
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankur Gupta committed Apr 15, 2024
1 parent 598c237 commit 9a9f569
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tags/mixins/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,10 @@ async def tag_list(self, ctx: commands.Context):
if not tags:
return await ctx.send("There are no stored tags on this server.")
data = self.generate_tag_list(tags)
await self.show_tag_list(ctx, data, "Stored Tags", ctx.guild.icon.url)
icon = ctx.guild.icon
if icon != None:
icon = ctx.guild.icon.url
await self.show_tag_list(ctx, data, "Stored Tags", icon)

async def doc_fetch(self) -> None:
async with self.session.get(f"{DOCS_URL}/objects.inv") as response:
Expand Down

0 comments on commit 9a9f569

Please sign in to comment.