diff options
| author | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-07-15 11:39:40 +0100 |
|---|---|---|
| committer | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-07-15 11:39:40 +0100 |
| commit | 0b71ade8bb6b0e373280c3a7dadfce39b4977d57 (patch) | |
| tree | 6fc66b4b049a8cd9101863503269bab74fa2e32d | |
| parent | 23a00e62ce128ffab5b35f389a8f8598e619b862 (diff) | |
| download | unnamed-group-0b71ade8bb6b0e373280c3a7dadfce39b4977d57.tar unnamed-group-0b71ade8bb6b0e373280c3a7dadfce39b4977d57.tar.gz unnamed-group-0b71ade8bb6b0e373280c3a7dadfce39b4977d57.tar.bz2 unnamed-group-0b71ade8bb6b0e373280c3a7dadfce39b4977d57.tar.xz unnamed-group-0b71ade8bb6b0e373280c3a7dadfce39b4977d57.zip | |
refactor: change embed message to plain text for requisition ticket creation
| -rw-r--r-- | 174bg/discord-bot/main.js | 16 |
1 files 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( |
