Replace all sendMessage calls with send

This commit is contained in:
dragonfire535
2017-03-15 20:59:46 -04:00
parent 7faa8c3190
commit dfc9583d99
87 changed files with 174 additions and 174 deletions
+5 -5
View File
@@ -22,15 +22,15 @@ class WarnCommand extends commando.Command {
}
console.log("[Command] " + message.content);
if (message.channel.type === 'dm') {
message.channel.sendMessage(":x: This is a DM!");
message.channel.send(":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.channel.sendMessage(":x: Either too many or no members, only mention one person!");
message.channel.send(":x: Either too many or no members, only mention one person!");
} else {
if(message.member.hasPermission('KICK_MEMBERS')) {
message.channel.sendMessage(":ok_hand:");
message.channel.send(":ok_hand:");
if(message.guild.channels.exists("name", "mod_logs")) {
const embed = new Discord.RichEmbed()
.setAuthor(message.author.username + '#' + message.author.discriminator, message.author.avatarURL)
@@ -40,10 +40,10 @@ class WarnCommand extends commando.Command {
.setDescription('**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.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.**");
message.channel.send("**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!");
message.channel.send(":x: You don't have the Kick Members Permission!");
}
}
}