queue
This commit is contained in:
@@ -101,7 +101,7 @@ async function poll(client) {
|
||||
?.value || 'New Ticket';
|
||||
const rawBody = getCleanBody(email.data.payload);
|
||||
|
||||
const sEmail = extractRawEmail(from);
|
||||
const sEmail = extractRawEmail(from).toLowerCase();
|
||||
const sName =
|
||||
(from.match(/^(.*?)\s*<.*>$/) || [null, from])[1]
|
||||
?.replace(/"/g, '')
|
||||
|
||||
@@ -602,7 +602,7 @@ async function handleConfirmClose(interaction, ticket) {
|
||||
async function handleTicketModal(interaction) {
|
||||
await interaction.deferReply({ ephemeral: true });
|
||||
|
||||
const email = interaction.fields.getTextInputValue('ticket_email').trim();
|
||||
const email = interaction.fields.getTextInputValue('ticket_email').trim().toLowerCase();
|
||||
const game = interaction.fields.getTextInputValue('ticket_game').trim();
|
||||
const description = interaction.fields.getTextInputValue('ticket_description');
|
||||
const subject = game ? `[${game}] ${description.slice(0, 60)}` : description.slice(0, 80);
|
||||
|
||||
Reference in New Issue
Block a user