Update addUser.js
This commit is contained in:
1 parent
f0a791e354
commit
59dd291dc6
1 file changed
+12
-1
+12
-1
@@ -38,7 +38,18 @@ module.exports = {
|
|||||||
|
|
||||||
if (!rUser) return message.channel.send({ embed: UserNotExist });
|
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 });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user