Browse Source

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

pull/7494/head
jack1142 3 years ago
committed by GitHub
parent
commit
686f233954
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      discord/message.py

8
discord/message.py

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

Loading…
Cancel
Save