mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 19:20:42 +00:00
Webpack build for branch master: b7c55f02c2
This commit is contained in:
parent
d31308aba9
commit
8da77f24e9
2 changed files with 4 additions and 2 deletions
|
|
@ -4831,7 +4831,7 @@ class Message extends Base {
|
||||||
/**
|
/**
|
||||||
* Edit the content of the message.
|
* Edit the content of the message.
|
||||||
* @param {StringResolvable} [content] The new content for the message
|
* @param {StringResolvable} [content] The new content for the message
|
||||||
* @param {MessageEditOptions} [options] The options to provide
|
* @param {MessageEditOptions|MessageEmbed} [options] The options to provide
|
||||||
* @returns {Promise<Message>}
|
* @returns {Promise<Message>}
|
||||||
* @example
|
* @example
|
||||||
* // Update the content of a message
|
* // Update the content of a message
|
||||||
|
|
@ -4846,6 +4846,8 @@ class Message extends Base {
|
||||||
} else if (!options) {
|
} else if (!options) {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
if (options instanceof Embed) options = { embed: options };
|
||||||
|
|
||||||
if (typeof options.content !== 'undefined') content = options.content;
|
if (typeof options.content !== 'undefined') content = options.content;
|
||||||
|
|
||||||
if (typeof content !== 'undefined') content = Util.resolveString(content);
|
if (typeof content !== 'undefined') content = Util.resolveString(content);
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue