Change Guild.preferred_locale to use the Locale enum

This commit is contained in:
Stocker
2022-03-05 23:30:51 -05:00
committed by GitHub
parent 85b6175137
commit 07a1311bf4
2 changed files with 14 additions and 6 deletions

View File

@ -915,6 +915,7 @@ Allowed types for the following parameters have been changed:
- ``rtc_region`` in :meth:`Guild.create_voice_channel` is now of type Optional[:class:`str`].
- ``rtc_region`` in :meth:`StageChannel.edit` is now of type Optional[:class:`str`].
- ``rtc_region`` in :meth:`VoiceChannel.edit` is now of type Optional[:class:`str`].
- ``preferred_locale`` in :meth`Guild.edit` is now of type :class:`Locale`.
Attribute Type Changes
------------------------
@ -948,6 +949,7 @@ The following changes have been made:
- :attr:`AuditLogEntry.target` may now be a :class:`PartialMessageable`.
- :attr:`PartialMessage.channel` may now be a :class:`PartialMessageable`.
- :attr:`Guild.preferred_locale` is now of type :class:`Locale`.
Removals
----------