return and await

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 13:16:59 +00:00
parent cea110ce4b
commit 7c0a39ec5c
83 changed files with 295 additions and 264 deletions
+2 -2
View File
@@ -22,10 +22,10 @@ module.exports = class EmojiCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
if (message.channel.type !== 'dm') {
message.channel.send(message.guild.emojis.map(e => e).join(" "));
return message.channel.send(message.guild.emojis.map(e => e).join(" "));
}
else {
message.channel.send(":x: Error! This command does not work in DM!");
return message.channel.send(":x: Error! This command does not work in DM!");
}
}
};
+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);
message.channel.sendEmbed(embed).catch(console.error);
return message.channel.sendEmbed(embed).catch(console.error);
}
else {
message.channel.send(":x: Error! This command does not work in DM!");
return message.channel.send(":x: Error! This command does not work in DM!");
}
}
};