From bbfaeafafa8b2373584d5452dad4f7a039988270 Mon Sep 17 00:00:00 2001 From: Leander Date: Wed, 9 Aug 2023 10:57:25 +0200 Subject: [PATCH] Update accounts.py Made request_user_by_discord_id use strings --- cord/accounts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cord/accounts.py b/cord/accounts.py index 506e9b9..d0f362c 100644 --- a/cord/accounts.py +++ b/cord/accounts.py @@ -12,7 +12,7 @@ load_dotenv() async def request_user_by_discord_id(discord_id): return requests.get( - url=f'https://api.nova-oss.com/users?discord_id={discord_id}', + url=f'https://api.nova-oss.com/users?discord_id="{discord_id}"', timeout=3, headers={ 'Content-Type': 'application/json', @@ -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) \ No newline at end of file +""", ephemeral=True)