mirror of
https://github.com/NovaOSS/nova-cord.git
synced 2024-11-26 00:23:57 +01:00
Compare commits
4 commits
c9ea838d5d
...
b08f24b9c9
Author | SHA1 | Date | |
---|---|---|---|
b08f24b9c9 | |||
dd85b437f6 | |||
bbfaeafafa | |||
369edc632f |
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue