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
@@ -18,12 +18,12 @@ class AvatarCommand extends commando.Command {
}
console.log("[Command] " + message.content);
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.mentions.users.first().avatarURL === null) {
message.reply(":x: This person has no avatar!");
message.channel.sendMessage(":x: This person has no avatar!");
} else {
message.reply(message.mentions.users.first().avatarURL);
message.channel.sendMessage(message.mentions.users.first().avatarURL);
}
}
}