Closed Ryan5453 closed 2 years ago
Do you think it would be a good idea to try/except the dict and display something like 'Other' if a KeyError was raised in case discord randomly adds more VC regions?
Thanks for the PR! While we're on adding voice regions, there are some others, here's all of them: atlanta, newark, santiago, santa-clara, st-pete, buenos-aires, seattle, stockholm
Do you think it would be a good idea to try/except the dict and display something like 'Other' if a KeyError was raised in case discord randomly adds more VC regions?
Yes, something like flag=regions_dict.get(region_name, region_name),
would works.
Fixes: https://sentry.io/share/issue/726cfb4a00f14657a6bd6eb4e080096e/