aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-07-30 23:10:36 -0400
committerRapptz <[email protected]>2021-07-30 23:10:36 -0400
commit6beef898c6254524b24609341fe150f60bbee798 (patch)
treed277e0dfd26d9916a47dd78768d3b1d29d22a5b2
parentFix SyncWebhook not working across thread barriers (diff)
downloaddiscord.py-6beef898c6254524b24609341fe150f60bbee798.tar.xz
discord.py-6beef898c6254524b24609341fe150f60bbee798.zip
Rename instances of nitro to premium
-rw-r--r--discord/client.py10
-rw-r--r--discord/flags.py2
-rw-r--r--discord/http.py2
-rw-r--r--discord/member.py2
-rw-r--r--discord/sticker.py4
-rw-r--r--discord/types/sticker.py2
6 files changed, 11 insertions, 11 deletions
diff --git a/discord/client.py b/discord/client.py
index 9c5c7dbf..357c1ab6 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -794,7 +794,7 @@ class Client:
.. note::
To retrieve standard stickers, use :meth:`.fetch_sticker`.
- or :meth:`.fetch_nitro_sticker_packs`.
+ or :meth:`.fetch_premium_sticker_packs`.
Returns
--------
@@ -1492,10 +1492,10 @@ class Client:
cls, _ = _sticker_factory(data['type']) # type: ignore
return cls(state=self._connection, data=data) # type: ignore
- async def fetch_nitro_sticker_packs(self) -> List[StickerPack]:
+ async def fetch_premium_sticker_packs(self) -> List[StickerPack]:
"""|coro|
- Retrieves all available nitro sticker packs.
+ Retrieves all available premium sticker packs.
.. versionadded:: 2.0
@@ -1507,9 +1507,9 @@ class Client:
Returns
---------
List[:class:`.StickerPack`]
- All available nitro sticker packs.
+ All available premium sticker packs.
"""
- data = await self.http.list_nitro_sticker_packs()
+ data = await self.http.list_premium_sticker_packs()
return [StickerPack(state=self._connection, data=pack) for pack in data['sticker_packs']]
async def create_dm(self, user: Snowflake) -> DMChannel:
diff --git a/discord/flags.py b/discord/flags.py
index 1a3ca792..b21e4ed8 100644
--- a/discord/flags.py
+++ b/discord/flags.py
@@ -205,7 +205,7 @@ class SystemChannelFlags(BaseFlags):
@flag_value
def premium_subscriptions(self):
- """:class:`bool`: Returns ``True`` if the system channel is used for Nitro boosting notifications."""
+ """:class:`bool`: Returns ``True`` if the system channel is used for "Nitro boosting" notifications."""
return 2
@flag_value
diff --git a/discord/http.py b/discord/http.py
index 7c18b701..ada87046 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -1173,7 +1173,7 @@ class HTTPClient:
def get_sticker(self, sticker_id: Snowflake) -> Response[sticker.Sticker]:
return self.request(Route('GET', '/stickers/{sticker_id}', sticker_id=sticker_id))
- def list_nitro_sticker_packs(self) -> Response[sticker.ListNitroStickerPacks]:
+ def list_premium_sticker_packs(self) -> Response[sticker.ListPremiumStickerPacks]:
return self.request(Route('GET', '/sticker-packs'))
def get_all_guild_stickers(self, guild_id: Snowflake) -> Response[List[sticker.GuildSticker]]:
diff --git a/discord/member.py b/discord/member.py
index 84d6adfb..7550fd9b 100644
--- a/discord/member.py
+++ b/discord/member.py
@@ -247,7 +247,7 @@ class Member(discord.abc.Messageable, _UserTag):
.. versionadded:: 1.6
premium_since: Optional[:class:`datetime.datetime`]
An aware datetime object that specifies the date and time in UTC when the member used their
- Nitro boost on the guild, if available. This could be ``None``.
+ "Nitro boost" on the guild, if available. This could be ``None``.
"""
__slots__ = (
diff --git a/discord/sticker.py b/discord/sticker.py
index b93f5baf..b7dc4b9f 100644
--- a/discord/sticker.py
+++ b/discord/sticker.py
@@ -51,7 +51,7 @@ if TYPE_CHECKING:
Sticker as StickerPayload,
StandardSticker as StandardStickerPayload,
GuildSticker as GuildStickerPayload,
- ListNitroStickerPacks as ListNitroStickerPacksPayload
+ ListPremiumStickerPacks as ListPremiumStickerPacksPayload
)
@@ -359,7 +359,7 @@ class StandardSticker(Sticker):
:class:`StickerPack`
The retrieved sticker pack.
"""
- data: ListNitroStickerPacksPayload = await self._state.http.list_nitro_sticker_packs()
+ data: ListPremiumStickerPacksPayload = await self._state.http.list_premium_sticker_packs()
packs = data['sticker_packs']
pack = find(lambda d: int(d['id']) == self.pack_id, packs)
diff --git a/discord/types/sticker.py b/discord/types/sticker.py
index 11150593..ec6922a8 100644
--- a/discord/types/sticker.py
+++ b/discord/types/sticker.py
@@ -89,5 +89,5 @@ class EditGuildSticker(TypedDict, total=False):
description: str
-class ListNitroStickerPacks(TypedDict):
+class ListPremiumStickerPacks(TypedDict):
sticker_packs: List[StickerPack]