frissyn / valorant.py

Complete Python interface for the Valorant API. Works right out of the box!
https://valorantpy.readthedocs.io
MIT License
125 stars 19 forks source link

get_platform_status() doesn't work #6

Closed teaishealthy closed 3 years ago

teaishealthy commented 3 years ago

get_platform_status() doesn't work. I looked a bit into the code and I think you used region=self.reigon but I think you should have used code=self.region. Although I'm not 100% sure.

frissyn commented 3 years ago

@teaishealthy Can you please specify what error was raised or what get_platform_status() returned? I might've messed up the region string formatting.=P

teaishealthy commented 3 years ago

Here! Traceback (most recent call last): File "<stdin>", line 1, in <module> File "\valorant\client.py", line 66, in get_platform_status url = _build_url(reigon=self.reigon, endpoint="status") TypeError: _build_url() got an unexpected keyword argument 'reigon'

frissyn commented 3 years ago

@teaishealthy It looks like I put in the wrong kwarg, but I've fixed it now. Thanks!