Update newticket.js
This commit is contained in:
1 parent
fc571d6c73
commit
be77ee1903
1 file changed
+4
-2
@@ -42,11 +42,13 @@ module.exports = {
|
|||||||
let DeptRole1 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_1}`)
|
let DeptRole1 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_1}`)
|
||||||
let DeptRole2 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_2}`)
|
let DeptRole2 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_2}`)
|
||||||
let DeptRole3 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_3}`)
|
let DeptRole3 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_3}`)
|
||||||
|
|
||||||
SupportTicket.updateOverwrite(AllUsers, {
|
SupportTicket.updateOverwrite(AllUsers, {
|
||||||
VIEW_CHANNEL: false,
|
VIEW_CHANNEL: false,
|
||||||
|
READ_MESSAGES: false,
|
||||||
|
SEND_MESSAGES: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
SupportTicket.updateOverwrite(message.author, {
|
SupportTicket.updateOverwrite(message.author, {
|
||||||
VIEW_CHANNEL: true,
|
VIEW_CHANNEL: true,
|
||||||
READ_MESSAGES: true,
|
READ_MESSAGES: true,
|
||||||
|
|||||||
Reference in new issue
Block a user