From 06291d860ce0b65aa916cdaea4a9938abc624eac Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 5 Mar 2022 23:07:55 -0500 Subject: [PATCH] Change enum members in Locale to be snake_case Not even sure how this slipped through. --- discord/enums.py | 4 ++-- docs/api.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/discord/enums.py b/discord/enums.py index f4a2a85cd..25882cc1a 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -625,8 +625,8 @@ class Locale(Enum): norwegian = 'no' polish = 'pl' brazil_portuguese = 'pt-BR' - Romanian = 'ro' - Russian = 'ru' + romanian = 'ro' + russian = 'ru' spain_spanish = 'es-ES' swedish = 'sv-SE' thai = 'th' diff --git a/docs/api.rst b/docs/api.rst index ff88e4678..a80547872 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -2579,11 +2579,11 @@ of :class:`enum.Enum`. The ``pt-BR`` locale. - .. attribute:: Romanian + .. attribute:: romanian The ``ro`` locale. - .. attribute:: Russian + .. attribute:: russian The ``ru`` locale.