From b08f24b9c9a4bfda7f6292cb2b70df7aef04acd5 Mon Sep 17 00:00:00 2001 From: nsde Date: Wed, 9 Aug 2023 11:29:02 +0200 Subject: [PATCH] Fix admin check --- cord/accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cord/accounts.py b/cord/accounts.py index a770dc5..8b4f543 100644 --- a/cord/accounts.py +++ b/cord/accounts.py @@ -59,7 +59,7 @@ Amount: **{amount_credits if amount_credits < 1000000 else '∞'}** """, ephemeral=True) async def get_credits_of(interaction, user): - if "Maintainer" not in interaction.user.roles: + if not interaction.user.guild_permissions.administrator: await embedder.error(interaction, """Sorry, you don't have the permission to do that.""", ephemeral=True) return