mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
.send() not working on members (#1539)
This commit is contained in:
parent
1aa2293ebf
commit
20a9e4a0f8
1 changed files with 1 additions and 1 deletions
|
|
@ -2,8 +2,8 @@ const Util = require('../../util/Util');
|
|||
|
||||
module.exports = function sendMessage(channel, options) {
|
||||
const User = require('../User');
|
||||
if (channel instanceof User) return channel.createDM().then(dm => dm.send(options));
|
||||
const GuildMember = require('../GuildMember');
|
||||
if (channel instanceof User || channel instanceof GuildMember) return channel.createDM().then(dm => dm.send(options));
|
||||
let { content, nonce, reply, code, disableEveryone, tts, embed, files, split } = options;
|
||||
|
||||
if (typeof nonce !== 'undefined') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue