mirror of
https://github.com/NovaOSS/nova-cord.git
synced 2024-11-25 22:43:57 +01:00
Compare commits
No commits in common. "b08f24b9c9a4bfda7f6292cb2b70df7aef04acd5" and "c9ea838d5d53cd212efdd64b13b09fafd80b63d5" have entirely different histories.
b08f24b9c9
...
c9ea838d5d
|
@ -59,7 +59,7 @@ Amount: **{amount_credits if amount_credits < 1000000 else '∞'}**
|
|||
""", ephemeral=True)
|
||||
|
||||
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)
|
||||
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': str(interaction.user.id)
|
||||
'discord_id': interaction.user.id
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue