Fixed
This commit is contained in:
parent
c44739033a
commit
2dabcc20ab
1 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,6 @@ class EvalCommand extends Command {
|
||||||
constructor() {
|
constructor() {
|
||||||
super('dm', {
|
super('dm', {
|
||||||
aliases: ['dm', 'pm'],
|
aliases: ['dm', 'pm'],
|
||||||
split: 'none',
|
|
||||||
category: 'owner',
|
category: 'owner',
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
|
@ -31,11 +30,11 @@ class EvalCommand extends Command {
|
||||||
|
|
||||||
let Attachment = (message.attachments).array();
|
let Attachment = (message.attachments).array();
|
||||||
if (Attachment[0]) {
|
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}`);
|
message.channel.send(`DM sent to ${user.username}`);
|
||||||
}
|
}
|
||||||
else {
|
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}`);
|
message.channel.send(`DM sent to ${user.username}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue