mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Add missing information about in-place edits in Message.edit
This commit is contained in:
parent
4dbe1af32f
commit
686f233954
@ -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…
x
Reference in New Issue
Block a user