Okay, it's weird, but don't await that

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 13:24:01 +00:00
parent 7c0a39ec5c
commit 6de6228a0d
+2 -2
View File
@@ -24,8 +24,8 @@ module.exports = class InfoCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
}
console.log(`[Command] ${message.content}`);
await this.client.shard.fetchClientValues('guilds.size').then(guilds => {
await this.client.shard.fetchClientValues('voiceConnections.size').then(vCConnections => {
this.client.shard.fetchClientValues('guilds.size').then(guilds => {
this.client.shard.fetchClientValues('voiceConnections.size').then(vCConnections => {
const embed = new Discord.RichEmbed()
.setTitle('Welcome to XiaoBot!')
.setAuthor(this.client.user.username, this.client.user.avatarURL)