Compare commits

..

No commits in common. "b08f24b9c9a4bfda7f6292cb2b70df7aef04acd5" and "c9ea838d5d53cd212efdd64b13b09fafd80b63d5" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ Amount: **{amount_credits if amount_credits < 1000000 else '∞'}**
""", ephemeral=True) """, ephemeral=True)
async def get_credits_of(interaction, user): async def get_credits_of(interaction, user):
if not interaction.user.guild_permissions.administrator: if "Maintainer" not in interaction.user.roles:
await embedder.error(interaction, """Sorry, you don't have the permission to do that.""", ephemeral=True) await embedder.error(interaction, """Sorry, you don't have the permission to do that.""", ephemeral=True)
return return

View file

@ -40,7 +40,7 @@ Please report this issue to the staff!""", ephemeral=True)
'Authorization': os.getenv('CORE_API_KEY') 'Authorization': os.getenv('CORE_API_KEY')
}, },
json={ json={
'discord_id': str(interaction.user.id) 'discord_id': interaction.user.id
} }
) )