From 24c2ec8bc7689ef9c45d56ac25966c5df02271c1 Mon Sep 17 00:00:00 2001 From: Paillat Date: Wed, 18 Dec 2024 15:20:09 +0100 Subject: [PATCH] :pencil2: Fix writing 2 --- CHANGELOG.md | 2 +- discord/role.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7957e48ca8..bc3f13f2ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,7 +30,7 @@ These changes are available on the `master` branch, but have not yet been releas ([#2587](https://github.com/Pycord-Development/pycord/pull/2587/)) - Added optional `filter` parameter to `utils.basic_autocomplete()`. ([#2590](https://github.com/Pycord-Development/pycord/pull/2590)) -- Added new role tags `subscription_listing_id`, `guild_connections`, and +- Added the following role tags: `subscription_listing_id`, `guild_connections`, and `available_for_purchase`. ([#2606](https://github.com/Pycord-Development/pycord/pull/2606)) - Added missing `with_counts` parameter to `fetch_guilds` method. diff --git a/discord/role.py b/discord/role.py index ceb6cf93ec..64846b4c93 100644 --- a/discord/role.py +++ b/discord/role.py @@ -110,14 +110,14 @@ def is_premium_subscriber(self) -> bool: def is_integration(self) -> bool: """Whether the guild manages the role through some form of - integrations such as Twitch or trough guild subscriptions. + integrations such as Twitch or through guild subscriptions. """ return self.integration_id is not None def is_available_for_purchase(self) -> bool: """Whether the role is available for purchase. - Returns ``True`` if the role is available for purchase, + Returns ``True`` if the role is available for purchase, and ``False`` if it is not available for purchase or if the role is not linked to a guild subscription. .. versionadded:: 2.7 @@ -327,7 +327,7 @@ def is_premium_subscriber(self) -> bool: def is_integration(self) -> bool: """Whether the guild manages the role through some form of - integrations such as Twitch or trough guild subscriptions. + integrations such as Twitch or through guild subscriptions. .. versionadded:: 1.6 """ @@ -348,7 +348,7 @@ def is_assignable(self) -> bool: def is_available_for_purchase(self) -> bool: """Whether the role is available for purchase. - Returns ``True`` if the role is available for purchase, + Returns ``True`` if the role is available for purchase, and ``False`` if it is not available for purchase or if the role is not linked to a guild subscription. .. versionadded:: 2.7