From 11e50470cca4443554b78fa4e776a72c8b2765f1 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 19 Nov 2019 19:25:07 +0100 Subject: [PATCH] show the user getting blacklisted --- commands/owner/blacklist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/owner/blacklist.js b/commands/owner/blacklist.js index 939dd37e..fa63c425 100644 --- a/commands/owner/blacklist.js +++ b/commands/owner/blacklist.js @@ -32,7 +32,7 @@ class blacklistCommand extends Command { if (!blacklist) { const body = {userID: args.userID}; 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 { 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; @@ -41,7 +41,7 @@ class blacklistCommand extends Command { let messageContent = messages.map(messages => messages.content); if (messageContent == 'y' || messageContent == 'yes') { 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 => {