Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
26065c2a5c
3 files changed
+17
-5
No files matched your search
@@ -31,8 +31,9 @@ exports.run = async(bot, message, args) => {
|
||||
let ac = message.guild.channels.find(AnnounceChannel => AnnounceChannel.name === `${bot.settings.Announcement_Channel}`)
|
||||
if(!ac) return message.channel.send(`:x: Error! Could not find the logs channel **${bot.settings.Announcement_Channel}**`)
|
||||
|
||||
ac.send(embed)
|
||||
// ac.send("@everyone")
|
||||
ac.send("@everyone").then((msg) => {
|
||||
ac.send(embed);
|
||||
});
|
||||
|
||||
const SuggestionSuccessEmbed = new Discord.RichEmbed()
|
||||
.setDescription(`:white_check_mark: You have successfully created an announcement. <#${ac.id}>`)
|
||||
|
||||
@@ -48,11 +48,16 @@ exports.run = (bot, message, args) => {
|
||||
}).then(TicketChannel => {
|
||||
|
||||
// Roles
|
||||
<<<<<<< HEAD
|
||||
let staff = message.guild.roles.find(supportRole => supportRole.name === `${bot.settings.staff}`)
|
||||
let everyone = message.guild.roles.find(everyoneRole => everyoneRole.name === "@everyone")
|
||||
let department = message.guild.roles.find(DepartmentRole => DepartmentRole.name === `${bot.settings.Department_Role_1}`)
|
||||
let department2 = message.guild.roles.find(DepartmentRole => DepartmentRole.name === `${bot.settings.Department_Role_2}`)
|
||||
let department3 = message.guild.roles.find(DepartmentRole => DepartmentRole.name === `${bot.settings.Department_Role_3}`)
|
||||
=======
|
||||
let support = message.guild.roles.find(supportRole => supportRole.name === `${bot.settings.support}`)
|
||||
let everyone = message.guild.roles.find(everyoneRole => everyoneRole.name === "@everyone")
|
||||
>>>>>>> master
|
||||
|
||||
// Permissions
|
||||
TicketChannel.overwritePermissions(everyone, { SEND_MESSAGES: false, READ_MESSAGES: false })
|
||||
|
||||
Reference in new issue
Block a user