mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 00:32:03 +00:00
revert: "Improved TextBasedChannel#send (#2537)"
This reverts commit 556e679bdb,
which broke resolving of non object literal message options.
This commit is contained in:
parent
556e679bdb
commit
90312952d9
1 changed files with 2 additions and 2 deletions
|
|
@ -107,8 +107,8 @@ class TextBasedChannel {
|
||||||
* .then(console.log)
|
* .then(console.log)
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
send(content, options) {
|
send(content, options) { // eslint-disable-line complexity
|
||||||
if (content && content.constructor === Object && !options) {
|
if (!options && typeof content === 'object' && !(content instanceof Array)) {
|
||||||
options = content;
|
options = content;
|
||||||
content = null;
|
content = null;
|
||||||
} else if (!options) {
|
} else if (!options) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue