From 5dd4df1397ecc85ea6bcbe88badc483d00ce23ed Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 30 Dec 2018 03:39:59 +0100 Subject: [PATCH] replaced message.say to message.channel.send --- commands/owner/dm.js | 6 +++--- commands/owner/reboot.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/owner/dm.js b/commands/owner/dm.js index 7ecb93e5..289e1b82 100644 --- a/commands/owner/dm.js +++ b/commands/owner/dm.js @@ -28,15 +28,15 @@ class EvalCommand extends Command { async exec(message, args) { let user = args.user; let message = args.message; - + let Attachment = (message.attachments).array(); if (Attachment[0]) { user.send(`**Message from the dev:**\n${message}\n${Attachment[0].url}`) - message.say(`DM sent to ${user.username}`) + message.channel.send(`DM sent to ${user.username}`) } else { user.send(`**Message from the dev:**\n${message}`) - message.say(`DM sent to ${user.username}`) + message.channel.send(`DM sent to ${user.username}`) } } diff --git a/commands/owner/reboot.js b/commands/owner/reboot.js index 787d2523..46add0f2 100644 --- a/commands/owner/reboot.js +++ b/commands/owner/reboot.js @@ -16,7 +16,7 @@ class RebootCommand extends Command { } async exec(message) { - await message.say('k bye thx\nhttps://i.redd.it/lw8hrvr0l4f11.jpg'); + await message.channel.send('k bye thx\nhttps://i.redd.it/lw8hrvr0l4f11.jpg'); process.exit(); }