feat: add answerer credit
Node.js CI / Lint and Test (push) Successful in 57s

This commit is contained in:
2025-09-27 19:37:59 -07:00
parent d7b8fa9726
commit c94c12968f
2 changed files with 9 additions and 5 deletions
-1
View File
@@ -1 +0,0 @@
import { Naomi
+9 -4
View File
@@ -117,7 +117,7 @@ export const handleModalSubmit = async(
}); });
return; return;
} }
const { message, fields } = interaction; const { message, fields, user } = interaction;
if (!message) { if (!message) {
await interaction.editReply({ await interaction.editReply({
content: "An error occurred while fetching the message.", content: "An error occurred while fetching the message.",
@@ -146,7 +146,8 @@ export const handleModalSubmit = async(
return; return;
} }
await channel.send({ await channel.send({
components: [ allowedMentions: { parse: [] },
components: [
{ {
// eslint-disable-next-line @typescript-eslint/naming-convention -- Discord API. // eslint-disable-next-line @typescript-eslint/naming-convention -- Discord API.
accent_color: null, accent_color: null,
@@ -169,6 +170,10 @@ export const handleModalSubmit = async(
spacing: 1, spacing: 1,
type: 14, type: 14,
}, },
{
content: `*Answered by <@${user.id}>*`,
type: 10,
},
{ {
content: `-# Brought to you by [NHCarrigan](<https://chat.nhcarrigan.com>)`, content: `-# Brought to you by [NHCarrigan](<https://chat.nhcarrigan.com>)`,
type: 10, type: 10,
@@ -192,14 +197,14 @@ export const handleModalSubmit = async(
label: "Donate to Naomi?", label: "Donate to Naomi?",
style: 5, style: 5,
type: 2, type: 2,
url: "https://google.com", url: "https://donate.nhcarrigan.com",
}, },
{ {
disabled: false, disabled: false,
label: "NHCarrigan Discord", label: "NHCarrigan Discord",
style: 5, style: 5,
type: 2, type: 2,
url: "https://google.com", url: "https://chat.nhcarrigan.com",
}, },
], ],
type: 1, type: 1,