Browse Source

fix: versionadded

Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
pull/10222/head
鏡花水月 2 weeks ago
committed by GitHub
parent
commit
0ecc48e383
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      discord/enums.py

2
discord/enums.py

@ -772,7 +772,7 @@ class Locale(Enum):
def language_code(self) -> str:
"""Returns the locale's language code in the format of ``language-COUNTRY``.
.. versionadded:: 2.5
.. versionadded:: 2.6
"""
return _UNICODE_LANG_MAP.get(self.value, self.value)

Loading…
Cancel
Save