Drop Reply in most cases

This commit is contained in:
dragonfire535
2017-03-03 12:19:13 -05:00
parent d6ad30caf9
commit bb9a8b3e0d
42 changed files with 83 additions and 83 deletions
+3 -3
View File
@@ -22,12 +22,12 @@ class WarnCommand extends commando.Command {
}
console.log("[Command] " + message.content);
if (message.channel.type === 'dm') {
message.reply(":x: This is a DM!");
message.channel.sendMessage(":x: This is a DM!");
} else {
let username = message.mentions.users.first();
let reason = message.content.split(" ").slice(2).join(" ");
if (message.mentions.users.size !== 1) {
message.reply(":x: Either too many or no members, only mention one person!");
message.channel.sendMessage(":x: Either too many or no members, only mention one person!");
} else {
if(message.member.hasPermission('KICK_MEMBERS')) {
message.channel.sendMessage(":ok_hand:");
@@ -41,7 +41,7 @@ class WarnCommand extends commando.Command {
'**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Warn\n**Reason:** ' + reason);
message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error);
} else {
message.reply("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**");
message.channel.sendMessage("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**");
}
} else {
message.channel.sendMessage(":x: You don't have the Kick Members Permission!");