From a83514861ab4adf43c1f1c54be9ad88a69abeb56 Mon Sep 17 00:00:00 2001 From: Conatum Date: Wed, 16 Aug 2023 22:48:17 +0300 Subject: [PATCH] fix (economy): Add ward to balance cmd. --- src/modules/economy/cog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/economy/cog.py b/src/modules/economy/cog.py index 082a1bd1..e79bf172 100644 --- a/src/modules/economy/cog.py +++ b/src/modules/economy/cog.py @@ -91,7 +91,7 @@ class Economy(LionCog): name=_p('cmd:economy_balance', "balance"), description=_p( 'cmd:economy_balance|desc', - "Display and modify LionCoin balance for members or roles." + "Display or modify LionCoin balance for members and roles." ) ) @appcmds.rename( @@ -113,6 +113,7 @@ class Economy(LionCog): "New balance to set the target's balance to." ) ) + @low_management_ward async def economy_balance_cmd( self, ctx: LionContext, @@ -368,6 +369,7 @@ class Economy(LionCog): ) ) else: + # TODO: Restrict view to the top 1000 so we don't murder the main thread await ctx.interaction.response.defer() # Viewing route MemModel = self.bot.core.data.Member