Added proper reason messages for ban/kick

This commit is contained in:
TheEssem 2019-11-06 11:19:24 -06:00
parent 171253c52c
commit e0bae52309
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ exports.run = async (message) => {
const member = message.mentions[0]; const member = message.mentions[0];
if (member) { if (member) {
try { try {
await message.channel.guild.banMember(member.id); await message.channel.guild.banMember(member.id, 0, `ban command used by @${message.author.username}#${message.author.discriminator}`);
return `Successfully banned ${member.mention}.`; return `Successfully banned ${member.mention}.`;
} catch (error) { } catch (error) {
console.error(error); console.error(error);

View file

@ -6,7 +6,7 @@ exports.run = async (message) => {
const member = message.mentions[0]; const member = message.mentions[0];
if (member) { if (member) {
try { try {
await message.channel.guild.kickMember(member.id); await message.channel.guild.kickMember(member.id, `kick command used by @${message.author.username}#${message.author.discriminator}`);
return `Successfully kicked ${member.mention}.`; return `Successfully kicked ${member.mention}.`;
} catch (error) { } catch (error) {
console.error(error); console.error(error);