Remove all useless async

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 12:16:58 +00:00
parent 33b7d18d54
commit 0ce7eb3ee1
95 changed files with 287 additions and 287 deletions
+3 -3
View File
@@ -51,7 +51,7 @@ module.exports = class TypingGameCommand extends commando.Command {
break;
}
if (!time) {
message.channel.send(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)');
return message.channel.send(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)');
}
else {
const embed = new Discord.RichEmbed()
@@ -64,10 +64,10 @@ module.exports = class TypingGameCommand extends commando.Command {
time: time,
errors: ['time']
});
message.channel.send(`Good Job! You won!`);
return message.channel.send(`Good Job! You won!`);
}
catch (err) {
message.channel.send('Aw... Too bad, try again next time!');
return message.channel.send('Aw... Too bad, try again next time!');
}
}
}