26.2 pre3

This commit is contained in:
1tzEmerald committed 2026-08-10 20:15:00 +01:00
1 parent a7598d26aa
commit 4eef1867e3
26 files changed
+1221 -385

No files matched your search

+16 -1
View File
@@ -140,6 +140,13 @@ module.exports = new Event("interactionCreate", async (client, interaction) => {
if (interaction.isStringSelectMenu()) {
if (interaction.customId === "ticketdepartmentselect") {
const selectedDepartment = interaction.values[0];
const deptConfig = supportbot.Ticket?.DepartmentSystem?.Departments?.[selectedDepartment];
if (deptConfig && deptConfig.Enabled === false) {
return interaction.reply({
content: "Ticket creation for this department is currently disabled.",
flags: Discord.MessageFlags.Ephemeral,
});
}
if (supportbot.Ticket.TicketReason) {
const modal = new Discord.ModalBuilder()
@@ -680,7 +687,15 @@ module.exports = new Event("interactionCreate", async (client, interaction) => {
});
}
if (interaction.customId === "createticket") {
if (interaction.customId === "createticket" || interaction.customId === "openticket") {
const panelDisabled = panelconfig.Panel === false || supportbot.Ticket?.Enabled === false;
if (panelDisabled) {
return interaction.reply({
content: "Ticket creation is currently disabled.",
flags: Discord.MessageFlags.Ephemeral,
});
}
if (supportbot.Ticket.TicketReason) {
const modal = new Discord.ModalBuilder()
.setCustomId("ticketReasonModal")