Proper await

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 02:29:31 +00:00
parent 5329d08581
commit 122fcf5de3
103 changed files with 613 additions and 577 deletions
+2 -2
View File
@@ -40,10 +40,10 @@ module.exports = class GuildInfoCommand extends commando.Command {
`${message.guild.owner.user.username}#${message.guild.owner.user.discriminator}`, true)
.addField("**Users:**",
message.guild.memberCount, true);
let embededMessage = await message.channel.sendEmbed(embed);
message.channel.sendEmbed(embed);
}
else {
let errorMessage = await message.channel.send(":x: Error! This command does not work in DM!");
message.channel.send(":x: Error! This command does not work in DM!");
}
}
};