Skip to content

Commit

Permalink
added discord proxy url
Browse files Browse the repository at this point in the history
  • Loading branch information
AMIT YADAV authored and AMIT YADAV committed Jun 14, 2024
1 parent 05304d8 commit 2a647ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def __init__(self, method: str, path: str, **parameters: Any) -> None:

@property
def base(self) -> str:
DISCORD_PROXY = bool(os.environ.get("DISCORD_PROXY", False))
DISCORD_PROXY = os.environ.get("DISCORD_PROXY", "")
if DISCORD_PROXY:
return f"http://discord.com/api/v{API_VERSION}"
return f"http://{DISCORD_PROXY}/api/v{API_VERSION}"
return f"https://discord.com/api/v{API_VERSION}"

@property
Expand Down

0 comments on commit 2a647ab

Please sign in to comment.