fix(APIMessage): edit shouldn't remove content (#3129)

* edit shouldn't remove content

If undefined is passed to the api, content isn't removed in such a case where you are only editing the embed.

* fix a related doc string

* update typings

* requested changes
This commit is contained in:
bdistin
2019-03-08 10:57:59 -06:00
committed by SpaceEEC
parent 132788937a
commit 1673b6f8f5
3 changed files with 17 additions and 12 deletions

View File

@@ -365,7 +365,7 @@ class Message extends Base {
/**
* Edits the content of the message.
* @param {StringResolvable|APIMessage} [content=''] The new content for the message
* @param {StringResolvable|APIMessage} [content] The new content for the message
* @param {MessageEditOptions|MessageEmbed} [options] The options to provide
* @returns {Promise<Message>}
* @example