This commit is contained in:
ItzEmerald committed 2020-07-11 13:17:57 +01:00
1 parent 94db6cff7b
commit dcc00d8d1f
4 files changed
+89 -23

No files matched your search

+17 -5
View File
@@ -13,10 +13,11 @@ module.exports = {
execute(message, args) {
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.AddUser}!`);
let staffGroup = message.guild.roles.cache.find(staffRole => staffRole.name === supportbot.StaffRole);
let SupportStaff = message.guild.roles.cache.find(staffRole => staffRole.name === supportbot.Staff);
const NoPerms = new Discord.MessageEmbed()
.setTitle("Invalid Permissions!")
.setDescription(":warning: **Err!** You do not have the correct permissions to use this command.")
.setDescription(`:warning: **Err!** You do not have the correct permissions to use this command.\n\nRole Required: \`${supportbot.SupportStaff}\``)
.setColor(supportbot.WarningColour)
message.channel.send({ embed: NoPerms });
@@ -37,8 +38,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 });
}
};