diff --git a/discord/abc.py b/discord/abc.py index 2871964e1..39bb0d889 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -1732,17 +1732,23 @@ class Messageable: Retrieve pinned messages before this time. If a datetime is provided, it is recommended to use a UTC aware datetime. If the datetime is naive, it is assumed to be local time. + + .. versionadded:: 2.6 limit: Optional[int] The maximum number of pinned messages to retrieve. Defaults to 50. This must be a number between 2 and 50. + .. versionadded:: 2.6 + Raises ------- ~discord.Forbidden You do not have the permission to retrieve pinned messages. ~discord.HTTPException Retrieving the pinned messages failed. + TypeError + The ``before`` parameter was not an aware :class:`datetime.datetime` object. Returns --------