7.7
This commit is contained in:
1 parent
c1a1839457
commit
69f0b00ed3
7 files changed
+47
-515
No files matched your search
+5
-11
@@ -83,9 +83,9 @@ module.exports = new Event("ready", async (client, interaction) => {
|
||||
supportbot.Staff,
|
||||
supportbot.TicketBlackListRole,
|
||||
];
|
||||
if (supportbot.TicketDepartments) {
|
||||
|
||||
supportbot.Departments.forEach((department) => roles.push(department.role));
|
||||
}
|
||||
|
||||
if (supportbot.AutoRole) roles.push(supportbot.JoinRole);
|
||||
const channels = [
|
||||
supportbot.SuggestionChannel,
|
||||
@@ -181,7 +181,7 @@ module.exports = new Event("ready", async (client, interaction) => {
|
||||
embed.setImage(panelconfig.PanelImage);
|
||||
}
|
||||
let button;
|
||||
if (supportbot.TicketDepartments) {
|
||||
|
||||
button = supportbot.Departments.map((x) =>
|
||||
new Discord.MessageButton()
|
||||
.setCustomId("department-" + supportbot.Departments.indexOf(x))
|
||||
@@ -189,13 +189,7 @@ module.exports = new Event("ready", async (client, interaction) => {
|
||||
.setStyle(x.color)
|
||||
.setEmoji(x.emoji)
|
||||
);
|
||||
} else {
|
||||
button = new Discord.MessageButton()
|
||||
.setLabel(panelconfig.ButtonLabel)
|
||||
.setCustomId("openticket")
|
||||
.setStyle(panelconfig.ButtonColour)
|
||||
.setEmoji(panelconfig.ButtonEmoji);
|
||||
}
|
||||
|
||||
let row = new Discord.MessageActionRow().addComponents(button);
|
||||
|
||||
await chan1
|
||||
@@ -219,4 +213,4 @@ module.exports = new Event("ready", async (client, interaction) => {
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user