Skip to content

Commit

Permalink
[Tags] add limit to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Oct 22, 2023
1 parent bde1eb5 commit cd7f779
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tags/mixins/owner.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,20 @@ def test_block(block: tse.Block) -> None:
async def tagsettings(self, ctx: commands.Context):
"""Manage Tags cog settings."""

@commands.guild_only()
@tagsettings.command("settings")
async def tagsettings_settings(self, ctx: commands.Context):
"""
View Tags settings.
"""
data = await self.config.all()
guild_data = await self.config.guild(ctx.guild).all()
description = [
f"**AsyncInterpreter**: `{data['async_enabled']}`",
f"**Dot Parameter Parsing**: `{data['dot_parameter']}`",
f"**Custom Blocks**: `{len(data['blocks'])}`",
f"**Global Limit**: `{data['max_tags_limit']}`",
f"**Guild Limit**: `{guild_data['max_tags_limit']} (ID: {ctx.guild.id})`",
]
embed = discord.Embed(
title="Tags Settings",
Expand Down

0 comments on commit cd7f779

Please sign in to comment.