mirror of
https://github.com/NovaOSS/nova-cord.git
synced 2024-11-25 16:23:58 +01:00
Fix admin check
This commit is contained in:
parent
dd85b437f6
commit
b08f24b9c9
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue