Browse Source

Fix Client.fetch_sticker_pack()

pull/10109/head
dolfies 3 years ago
parent
commit
31434210e7
  1. 2
      discord/client.py
  2. 2
      discord/http.py

2
discord/client.py

@ -2015,7 +2015,7 @@ class Client:
.. warning::
This API route is not used by the Discord client and may increase your chances at getting detected.
This API route is not well-used by the Discord client and may increase your chances at getting detected.
Consider :meth:`fetch_user_profile` if you share a guild/relationship with the user.
.. versionchanged:: 2.0

2
discord/http.py

@ -1448,7 +1448,7 @@ class HTTPClient:
return self.request(Route('GET', '/sticker-packs'), params=params)
def get_sticker_pack(self, pack_id: Snowflake):
return self.request(Route('GET', '/sticker-packs/{pack_id}', pack_id=pack_id), auth=False)
return self.request(Route('GET', '/sticker-packs/{pack_id}', pack_id=pack_id))
def get_all_guild_stickers(self, guild_id: Snowflake) -> Response[List[sticker.GuildSticker]]:
return self.request(Route('GET', '/guilds/{guild_id}/stickers', guild_id=guild_id))

Loading…
Cancel
Save