Don't await that either

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 13:26:43 +00:00
parent 6de6228a0d
commit 7374270dcb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ module.exports = class MathGameCommand extends commando.Command {
.setTitle('You have **ten** seconds to answer:')
.setDescription(randomExpression);
await message.channel.sendEmbed(embed).then(() => {
await message.channel.awaitMessages(response => response.content === solved.toString() && response.author.id === message.author.id, {
message.channel.awaitMessages(response => response.content === solved.toString() && response.author.id === message.author.id, {
max: 1,
time: 10000,
errors: ['time'],
+1 -1
View File
@@ -58,7 +58,7 @@ module.exports = class TypingGameCommand extends commando.Command {
.setTitle('You have **' + levelWord + '** seconds to type:')
.setDescription(randomSentence);
await message.channel.sendEmbed(embed).then(() => {
await message.channel.awaitMessages(response => response.content === randomSentence && response.author.id === message.author.id, {
message.channel.awaitMessages(response => response.content === randomSentence && response.author.id === message.author.id, {
max: 1,
time: time,
errors: ['time'],