Compare commits

...

4 commits

Author SHA1 Message Date
nsde b08f24b9c9 Fix admin check 2023-08-09 11:29:02 +02:00
Leander dd85b437f6
Update accounts.py
Reverted change
2023-08-09 10:59:00 +02:00
Leander bbfaeafafa
Update accounts.py
Made request_user_by_discord_id use strings
2023-08-09 10:57:25 +02:00
henceiusegentoo 369edc632f Made discord-id automatically be a string by account creation 2023-08-09 10:16:34 +02:00
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 "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) 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': interaction.user.id 'discord_id': str(interaction.user.id)
} }
) )