mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Change Guild.preferred_locale to use the Locale enum
This commit is contained in:
@ -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
|
||||
----------
|
||||
|
Reference in New Issue
Block a user