From cd7f77942211c0ade4222b314fea6e815b14591e Mon Sep 17 00:00:00 2001 From: Lemon Rose Date: Sun, 22 Oct 2023 14:53:44 +0530 Subject: [PATCH] [Tags] add limit to settings --- tags/mixins/owner.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tags/mixins/owner.py b/tags/mixins/owner.py index 891792eb..9702020d 100644 --- a/tags/mixins/owner.py +++ b/tags/mixins/owner.py @@ -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",