From 0b71ade8bb6b0e373280c3a7dadfce39b4977d57 Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Wed, 15 Jul 2026 11:39:40 +0100 Subject: refactor: change embed message to plain text for requisition ticket creation --- 174bg/discord-bot/main.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/174bg/discord-bot/main.js b/174bg/discord-bot/main.js index 92b4645..f9ce3cd 100644 --- a/174bg/discord-bot/main.js +++ b/174bg/discord-bot/main.js @@ -6,7 +6,6 @@ import { Routes, PermissionFlagsBits, SlashCommandBuilder, - EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, @@ -94,15 +93,7 @@ const commands = [ ], }); - // send an embed message to the new channel with a close button that only the quartermaster role can see - const embed = new EmbedBuilder() - .setTitle(`Requisition Ticket #${timestamp}`) - .setFields([ - { name: "Contents", value: contents }, - { name: "Created by", value: `<@${interaction.user.id}>` }, - ]) - .setColor(0x00ff00); - + // send a normal message to the new channel with a close button that only the quartermaster role can see const row = new ActionRowBuilder().addComponents( new ButtonBuilder() .setCustomId("close_req_ticket") @@ -111,7 +102,10 @@ const commands = [ .setDisabled(false), ); - await newChannel.send({ embeds: [embed], components: [row] }); + await newChannel.send({ + content: `**Requisition Ticket #${timestamp}**\n**Contents:** ${contents}\n**Created by:** <@${interaction.user.id}>`, + components: [row], + }); // reply to the user await interaction.reply( -- cgit v1.2.3