This commit is contained in:
Daniel Odendahl Jr
2017-03-22 01:24:58 +00:00
parent 392e84ad16
commit fe72f9f42c
+2 -2
View File
@@ -18,8 +18,6 @@ module.exports = class WarnCommand extends commando.Command {
}
console.log("[Command] " + message.content);
if (message.channel.type !== 'dm') {
message.channel.send(":x: Error! This command does not work in DM!");
} else {
let userToWarn = message.mentions.users.first();
let reason = message.content.split(" ").slice(2).join(" ");
if (message.mentions.users.size !== 1) {
@@ -42,6 +40,8 @@ module.exports = class WarnCommand extends commando.Command {
} else {
message.channel.send(":x: Error! Please mention one user!");
}
} else {
message.channel.send(":x: Error! This command does not work in DM!");
}
}
};