forked from Supositware/Haha-Yes
show the user getting blacklisted
This commit is contained in:
parent
84b31dae4b
commit
11e50470cc
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ class blacklistCommand extends Command {
|
||||||
if (!blacklist) {
|
if (!blacklist) {
|
||||||
const body = {userID: args.userID};
|
const body = {userID: args.userID};
|
||||||
userBlacklist.create(body);
|
userBlacklist.create(body);
|
||||||
return message.channel.send(`The user with the following id have been blacklisted: ${args.userID}`);
|
return message.channel.send(`The following user have been blacklisted: ${this.client.users.get(args.userID).username}#${this.client.users.get(args.userID).discriminator} (${args.userID})`);
|
||||||
} else {
|
} else {
|
||||||
message.channel.send('This user is already blacklisted, do you want to unblacklist him? y/n');
|
message.channel.send('This user is already blacklisted, do you want to unblacklist him? y/n');
|
||||||
const filter = m => m.content && m.author.id == message.author.id;
|
const filter = m => m.content && m.author.id == message.author.id;
|
||||||
|
@ -41,7 +41,7 @@ class blacklistCommand extends Command {
|
||||||
let messageContent = messages.map(messages => messages.content);
|
let messageContent = messages.map(messages => messages.content);
|
||||||
if (messageContent == 'y' || messageContent == 'yes') {
|
if (messageContent == 'y' || messageContent == 'yes') {
|
||||||
userBlacklist.destroy({where: {userID:args.userID}});
|
userBlacklist.destroy({where: {userID:args.userID}});
|
||||||
return message.channel.send(`The user with the following id have been unblacklisted: ${args.userID}`);
|
return message.channel.send(`The following user have been unblacklisted: ${this.client.users.get(args.userID).username}#${this.client.users.get(args.userID).discriminator} (${args.userID})`);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
|
Loading…
Reference in a new issue