security hardening
This commit is contained in:
@@ -15,6 +15,7 @@ const {
|
||||
ChannelSelectMenuBuilder
|
||||
} = require('discord.js');
|
||||
const { CONFIG } = require('../config');
|
||||
const { enqueueSend } = require('../services/channelQueue');
|
||||
|
||||
const TOTAL_STEPS = 5;
|
||||
const WIZARD_TIMEOUT_MS = 30 * 60 * 1000; // 30 minutes
|
||||
@@ -505,7 +506,7 @@ async function handleSetupButton(interaction) {
|
||||
);
|
||||
}
|
||||
|
||||
await channel.send({ embeds: [embed], components: [row] });
|
||||
await enqueueSend(channel, { embeds: [embed], components: [row] });
|
||||
|
||||
const envLines = state.ticketType === 'both'
|
||||
? [`DISCORD_THREAD_CHANNEL_ID=${state.threadChannelId}`, `DISCORD_TICKET_CATEGORY_ID=${state.categoryId}`]
|
||||
|
||||
Reference in New Issue
Block a user