From d44328d3eab6df17bc20d46e44dd2d4d9b9d24ec Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 1 Mar 2022 05:51:18 -0500 Subject: [PATCH] Remove region from Guild.__slots__ This also fixes up some docstrings --- discord/client.py | 6 +----- discord/guild.py | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/discord/client.py b/discord/client.py index af494813a..07d86703f 100644 --- a/discord/client.py +++ b/discord/client.py @@ -1359,11 +1359,7 @@ class Client: Bot accounts in more than 10 guilds are not allowed to create guilds. .. versionchanged:: 2.0 - ``name`` and ``icon`` parameters are now keyword-only. - The `region`` parameter has been removed. - - .. versionchanged:: 2.0 - ``name`` and ``region``, and ``icon`` parameters are now keyword-only. + ``name`` and ``icon`` parameters are now keyword-only. The `region`` parameter has been removed. .. versionchanged:: 2.0 This function no-longer raises ``InvalidArgument`` instead raising diff --git a/discord/guild.py b/discord/guild.py index 0327efe1d..e14cc3153 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -263,7 +263,6 @@ class Guild(Hashable): 'name', 'id', 'unavailable', - 'region', 'owner_id', 'emojis', 'stickers',