escalation

This commit is contained in:
indifferentketchup
2026-04-06 17:19:13 -05:00
parent 356b617ca5
commit 8c95b5eb8d

View File

@@ -18,7 +18,6 @@ const { sendTicketNotificationEmail } = require('../services/gmail');
const { getTicketActionRow } = require('../utils/ticketComponents');
const { getEmailRouting } = require('../services/guildSettings');
const { enqueueRename, enqueueMove } = require('../services/channelQueue');
const { moveStaffChannel } = require('../services/staffChannel');
const { setNotifyDm } = require('../services/staffSettings');
const { trackInteraction, trackError, getAnalyticsSummary } = require('./analytics');
const { handleAccountInfoCommand } = require('./accountinfo');
@@ -106,10 +105,6 @@ async function runEscalation(interaction, ticket, nextTier, reason) {
if (renameInfoEsc.ok) await enqueueRename(interaction.channel, `${emoji}${baseName}`);
const tierCategory = nextTier === 1 ? CONFIG.STAFF_T2_CATEGORY : CONFIG.STAFF_T3_CATEGORY;
if (tierCategory) await enqueueMove(interaction.channel, tierCategory);
if (ticket.staffChannelId) {
const staffChan = await interaction.guild.channels.fetch(ticket.staffChannelId).catch(() => null);
if (staffChan) await moveStaffChannel(staffChan, tierCategory);
}
} catch (e) {
console.error('Staff tier category (escalate):', e);
}