fix: add flag

This commit is contained in:
2025-07-21 15:51:26 -07:00
parent 478bb291b4
commit 4130fccb0f
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -47,5 +47,6 @@ console.log(JSON.stringify([
about.toJSON(),
add.toJSON(),
remove.toJSON(),
list.toJSON()
list.toJSON(),
dm.toJSON()
]));
+1 -1
View File
@@ -112,7 +112,7 @@ export const add: Command = async(liora, interaction) => {
components: [
new ContainerBuilder().addTextDisplayComponents(
new TextDisplayBuilder().setContent(
`Oh dear, it looks like you have already added the word \`${wordToAdd}\` to your highlights!`,
`Okay, I will notify you in DMs when \`${wordToAdd}\` is mentioned in this server.`,
),
),
new ActionRowBuilder<ButtonBuilder>().addComponents(
+2
View File
@@ -8,6 +8,7 @@ import {
ButtonBuilder,
ButtonStyle,
ContainerBuilder,
MessageFlags,
SeparatorBuilder,
SeparatorSpacingSize,
TextDisplayBuilder,
@@ -104,6 +105,7 @@ const messageCreate = async(
setURL("https://forum.nhcarrigan.com"),
),
],
flags: [ MessageFlags.IsComponentsV2 ],
}).catch(() => {
// If we cannot send the DM, we do not want to throw an error.
return null;