Add missing information about in-place edits in Message.edit

This commit is contained in:
jack1142 2022-02-20 04:35:52 +01:00 committed by GitHub
parent 4dbe1af32f
commit 686f233954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1218,6 +1218,9 @@ class Message(Hashable):
.. versionchanged:: 1.3
The ``suppress`` keyword-only parameter was added.
.. versionchanged:: 2.0
Edits are no longer in-place, the newly edited role is returned instead.
Parameters
-----------
content: Optional[:class:`str`]
@ -1271,6 +1274,11 @@ class Message(Hashable):
edited a message's content or embed that isn't yours.
~discord.InvalidArgument
You specified both ``embed`` and ``embeds``
Returns
--------
:class:`Message`
The newly edited message.
"""
previous_allowed_mentions = self._state.allowed_mentions