mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +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)
|
||||
* .catch(console.error);
|
||||
*/
|
||||
send(content, options) {
|
||||
if (content && content.constructor === Object && !options) {
|
||||
send(content, options) { // eslint-disable-line complexity
|
||||
if (!options && typeof content === 'object' && !(content instanceof Array)) {
|
||||
options = content;
|
||||
content = null;
|
||||
} else if (!options) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue