replaced message.say to message.channel.send

This commit is contained in:
Loic Bersier 2018-12-30 03:39:59 +01:00
parent 52819edef5
commit 5dd4df1397
2 changed files with 4 additions and 4 deletions

View file

@ -28,15 +28,15 @@ class EvalCommand extends Command {
async exec(message, args) { async exec(message, args) {
let user = args.user; let user = args.user;
let message = args.message; let message = args.message;
let Attachment = (message.attachments).array(); let Attachment = (message.attachments).array();
if (Attachment[0]) { if (Attachment[0]) {
user.send(`**Message from the dev:**\n${message}\n${Attachment[0].url}`) 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 { else {
user.send(`**Message from the dev:**\n${message}`) user.send(`**Message from the dev:**\n${message}`)
message.say(`DM sent to ${user.username}`) message.channel.send(`DM sent to ${user.username}`)
} }
} }

View file

@ -16,7 +16,7 @@ class RebootCommand extends Command {
} }
async exec(message) { 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(); process.exit();
} }