Minor Code Improvements

This commit is contained in:
Daniel Odendahl Jr
2017-05-03 01:03:59 +00:00
parent b18241f7bc
commit 74fa836044
16 changed files with 96 additions and 29 deletions
+9 -2
View File
@@ -49,7 +49,10 @@ module.exports = class SoftbanCommand extends Command {
return msg.say('This member is not bannable. Perhaps they have a higher role than me?');
try {
try {
await member.send(`You were softbanned from ${msg.guild.name}!\nReason: ${reason}.`);
await member.send(
`You were softbanned from ${msg.guild.name}!
Reason: ${reason}.`
);
} catch (err) {
await msg.say('Failed to send DM to user.');
}
@@ -63,7 +66,11 @@ module.exports = class SoftbanCommand extends Command {
.setAuthor(msg.author.tag, msg.author.displayAvatarURL)
.setColor(0xFF4500)
.setTimestamp()
.setDescription(`**Member:** ${member.user.tag} (${member.id})\n**Action:** Softban\n**Reason:** ${reason}`);
.setDescription(
`**Member:** ${member.user.tag} (${member.id})
**Action:** Softban
**Reason:** ${reason}`
);
return modlogs.send({embed});
} catch (err) {
return msg.say('An Unknown Error Occurred.');