Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix VoiceRegion.ID type #354

Merged
merged 2 commits into from
May 8, 2024
Merged

fix VoiceRegion.ID type #354

merged 2 commits into from
May 8, 2024

Conversation

MCausc78
Copy link
Contributor

@MCausc78 MCausc78 commented May 8, 2024

otherwise rest.Voice.GetVoiceRegions always fails

>>> url = 'https://discord.com/api/v10/voice/regions'
>>> headers = {'Authorization': 'Bot ' + token}
>>> response = requests.get(url, headers=headers)
>>> response
<Response [200]>
>>> response.json()
[{'id': 'brazil', 'name': 'Brazil', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'hongkong', 'name': 'Hong Kong', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'india', 'name': 'India', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'japan', 'name': 'Japan', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'rotterdam', 'name': 'Rotterdam', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'russia', 'name': 'Russia', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'singapore', 'name': 'Singapore', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'southafrica', 'name': 'South Africa', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'sydney', 'name': 'Sydney', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'us-central', 'name': 'US Central', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'us-east', 'name': 'US East', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'us-south', 'name': 'US South', 'custom': False, 'deprecated': False, 'optimal': False}, {'id': 'us-west', 'name': 'US West', 'custom': False, 'deprecated': False, 'optimal': False}]
>>>

@topi314
Copy link
Member

topi314 commented May 8, 2024

@topi314 topi314 merged commit e320d08 into disgoorg:master May 8, 2024
3 checks passed
@topi314
Copy link
Member

topi314 commented May 8, 2024

thanks

@MCausc78 MCausc78 deleted the vr branch May 8, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants