Browse Source

Add missing versionadded and exception

pull/10205/head
Soheab_ 4 weeks ago
parent
commit
1417d06702
  1. 6
      discord/abc.py

6
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
--------

Loading…
Cancel
Save