From 59dd291dc65f7772e213e6ff536617b09b26d373 Mon Sep 17 00:00:00 2001 From: ItzEmerald Date: Fri, 10 Jul 2020 20:55:02 +0100 Subject: [PATCH] Update addUser.js --- commands/addUser.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/commands/addUser.js b/commands/addUser.js index 18d884a..9fd4eda 100644 --- a/commands/addUser.js +++ b/commands/addUser.js @@ -37,8 +37,19 @@ module.exports = { .setColor(supportbot.ErrorColor) if (!rUser) return message.channel.send({ embed: UserNotExist }); - - - + + message.channel.updateOverwrite(rUser, { + VIEW_CHANNEL: true, + CREATE_INVITE: false, + SEND_MESSAGES: true, + READ_MESSAGES: true + }); + + const Complete = new Discord.MessageEmbed() + .setTitle("User Added!") + .setDescription(`👍 ${rUser} has been added to this ticket`) + .setTimestamp() + .setColor(supportbot.EmbedColour) + message.channel.send({ embed: Complete }); } -}; \ No newline at end of file +};