aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-07-10 06:14:51 -0400
committerRapptz <[email protected]>2017-07-10 06:14:51 -0400
commitb3cad744424c6122f6989500ad79c9cab273a3e1 (patch)
tree632e5a9bf30ed378e8197d3264ad27683ba8ea22
parentSimplify embed timestamp code due to it being fixed Discord side. (diff)
downloaddiscord.py-b3cad744424c6122f6989500ad79c9cab273a3e1.tar.xz
discord.py-b3cad744424c6122f6989500ad79c9cab273a3e1.zip
Message content is Optional in Message.edit.
-rw-r--r--discord/message.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/message.py b/discord/message.py
index 3efea9fb..678d9f37 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -508,8 +508,9 @@ class Message:
Parameters
-----------
- content: str
+ content: Optional[str]
The new content to replace the message with.
+ Could be ``None`` to remove the content.
embed: Optional[:class:`Embed`]
The new embed to replace the original with.
Could be ``None`` to remove the embed.