generated from nhcarrigan/template
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
import { Naomi
|
|
||||||
@@ -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,6 +146,7 @@ export const handleModalSubmit = async(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await channel.send({
|
await channel.send({
|
||||||
|
allowedMentions: { parse: [] },
|
||||||
components: [
|
components: [
|
||||||
{
|
{
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention -- Discord API.
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Discord API.
|
||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user