Update addUser.js

This commit is contained in:
ItzEmerald authored and GitHub committed 2020-07-10 20:55:02 +01:00
1 parent f0a791e354
commit 59dd291dc6
1 file changed
+15 -4
+15 -4
View File
@@ -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 });
}
};
};