Remove region from Guild.__slots__

This also fixes up some docstrings
This commit is contained in:
Rapptz 2022-03-01 05:51:18 -05:00
parent bb5ed4947d
commit d44328d3ea
2 changed files with 1 additions and 6 deletions

View File

@ -1359,11 +1359,7 @@ class Client:
Bot accounts in more than 10 guilds are not allowed to create guilds. Bot accounts in more than 10 guilds are not allowed to create guilds.
.. versionchanged:: 2.0 .. versionchanged:: 2.0
``name`` and ``icon`` parameters are now keyword-only. ``name`` and ``icon`` parameters are now keyword-only. The `region`` parameter has been removed.
The `region`` parameter has been removed.
.. versionchanged:: 2.0
``name`` and ``region``, and ``icon`` parameters are now keyword-only.
.. versionchanged:: 2.0 .. versionchanged:: 2.0
This function no-longer raises ``InvalidArgument`` instead raising This function no-longer raises ``InvalidArgument`` instead raising

View File

@ -263,7 +263,6 @@ class Guild(Hashable):
'name', 'name',
'id', 'id',
'unavailable', 'unavailable',
'region',
'owner_id', 'owner_id',
'emojis', 'emojis',
'stickers', 'stickers',