Update 4.0.1

Bug Fixes:

Announcements displaying “undefined” above the announcement message instead of a role.

Tickets not allowing users to talk
This commit is contained in:
ItzEmerald committed 2019-08-04 00:12:49 +01:00
1 parent a8302cd276
commit de0ec97d9b
8 files changed
+69 -15

No files matched your search

+2 -2
View File
@@ -48,12 +48,12 @@ exports.run = (bot, message, args) => {
}).then(TicketChannel => {
// Roles
let staff = message.guild.roles.find(staffRole => staffRole.name === `${bot.settings.support}`)
let support = message.guild.roles.find(supportRole => supportRole.name === `${bot.settings.support}`)
let everyone = message.guild.roles.find(everyoneRole => everyoneRole.name === `@everyone`)
// Permissions
TicketChannel.overwritePermissions(everyone, { SEND_MESSAGES: false, READ_MESSAGES: false })
TicketChannel.overwritePermissions(staff, { SEND_MESSAGES: true, READ_MESSAGES: true })
TicketChannel.overwritePermissions(support, { SEND_MESSAGES: true, READ_MESSAGES: true })
TicketChannel.overwritePermissions(message.author, { SEND_MESSAGES: true, READ_MESSAGES: true })
TicketChannel.overwritePermissions(bot.user, { SEND_MESSAGES: true, READ_MESSAGES: true })