diff --git a/discord/client.py b/discord/client.py index 9c5c7dbff..357c1ab66 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 1a3ca792a..b21e4ed83 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 7c18b7016..ada87046f 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 84d6adfb7..7550fd9b3 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 b93f5baf3..b7dc4b9fb 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 111505934..ec6922a8c 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]