fix: Add missing permission wards.

This commit is contained in:
2023-08-16 23:25:12 +03:00
parent 41c0f2d094
commit fde42226ed
5 changed files with 11 additions and 5 deletions

View File

@@ -511,6 +511,7 @@ class Economy(LionCog):
"Target user or role to view or update. Use @everyone to reset the entire guild."
),
)
@low_management_ward
async def economy_reset_cmd(
self,
ctx: LionContext,
@@ -634,7 +635,7 @@ class Economy(LionCog):
# Do not create the member row if it does not already exist.
# TODO: Audit logging trail
await ctx.bot.core.data.Member.table.update_where(
guuildid=ctx.guild.id,
guildid=ctx.guild.id,
userid=target.id,
).set(coins=starting_balance)
await ctx.reply(