Added proper reason messages for ban/kick
This commit is contained in:
parent
171253c52c
commit
e0bae52309
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ exports.run = async (message) => {
|
|||
const member = message.mentions[0];
|
||||
if (member) {
|
||||
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}.`;
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
|
|
@ -6,7 +6,7 @@ exports.run = async (message) => {
|
|||
const member = message.mentions[0];
|
||||
if (member) {
|
||||
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}.`;
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
|
Loading…
Reference in a new issue