mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
allow content in edit options like in message send options (#1657)
This commit is contained in:
parent
f8a1f2c23b
commit
39a3e72894
1 changed files with 2 additions and 0 deletions
|
|
@ -359,6 +359,7 @@ class Message {
|
|||
/**
|
||||
* Options that can be passed into editMessage.
|
||||
* @typedef {Object} MessageEditOptions
|
||||
* @property {string} [content] Content to be edited
|
||||
* @property {Object} [embed] An embed to be added/edited
|
||||
* @property {string|boolean} [code] Language for optional codeblock formatting to apply
|
||||
*/
|
||||
|
|
@ -381,6 +382,7 @@ class Message {
|
|||
} else if (!options) {
|
||||
options = {};
|
||||
}
|
||||
if (typeof options.content !== 'undefined') content = options.content;
|
||||
|
||||
if (typeof content !== 'undefined') content = Util.resolveString(content);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue