mirror of
https://github.com/NovaOSS/nova-cord.git
synced 2024-11-25 22: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)
|
||||
|
||||
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
|
||||
|
||||
|
@ -80,4 +80,4 @@ Please report this issue to the staff!""", ephemeral=True)
|
|||
|
||||
await embedder.info(interaction, f"""### Credits of {user.name}
|
||||
Amount: **{amount_credits if amount_credits < 1000000 else '∞'}**
|
||||
""", ephemeral=True)
|
||||
""", ephemeral=True)
|
||||
|
|
|
@ -40,7 +40,7 @@ Please report this issue to the staff!""", ephemeral=True)
|
|||
'Authorization': os.getenv('CORE_API_KEY')
|
||||
},
|
||||
json={
|
||||
'discord_id': interaction.user.id
|
||||
'discord_id': str(interaction.user.id)
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue