From 1417d06702cdc9bbf896b87ba13c9cc51704ea79 Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Fri, 20 Jun 2025 21:08:09 +0200 Subject: [PATCH] Add missing versionadded and exception --- discord/abc.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 --------