From 2dabcc20ab141e274b737c35f0dc64c8f677f738 Mon Sep 17 00:00:00 2001 From: Supositware Date: Wed, 2 Jan 2019 08:26:47 +0100 Subject: [PATCH] Fixed --- commands/owner/dm.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/commands/owner/dm.js b/commands/owner/dm.js index 69f3b463..45268f20 100644 --- a/commands/owner/dm.js +++ b/commands/owner/dm.js @@ -4,7 +4,6 @@ class EvalCommand extends Command { constructor() { super('dm', { aliases: ['dm', 'pm'], - split: 'none', category: 'owner', args: [ { @@ -31,11 +30,11 @@ class EvalCommand extends Command { let Attachment = (message.attachments).array(); if (Attachment[0]) { - user.send(`**Message from the dev:**\n${text}\n${Attachment[0].url}`); + this.client.users.get(user).send(`**Message from the dev:**\n${text}\n${Attachment[0].url}`); message.channel.send(`DM sent to ${user.username}`); } else { - user.send(`**Message from the dev:**\n${text}`); + this.client.users.get(user.id).send(`**Message from the dev:**\n${text}`); message.channel.send(`DM sent to ${user.username}`); }