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(), about.toJSON(),
add.toJSON(), add.toJSON(),
remove.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: [ components: [
new ContainerBuilder().addTextDisplayComponents( new ContainerBuilder().addTextDisplayComponents(
new TextDisplayBuilder().setContent( 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( new ActionRowBuilder<ButtonBuilder>().addComponents(
+2
View File
@@ -8,6 +8,7 @@ import {
ButtonBuilder, ButtonBuilder,
ButtonStyle, ButtonStyle,
ContainerBuilder, ContainerBuilder,
MessageFlags,
SeparatorBuilder, SeparatorBuilder,
SeparatorSpacingSize, SeparatorSpacingSize,
TextDisplayBuilder, TextDisplayBuilder,
@@ -104,6 +105,7 @@ const messageCreate = async(
setURL("https://forum.nhcarrigan.com"), setURL("https://forum.nhcarrigan.com"),
), ),
], ],
flags: [ MessageFlags.IsComponentsV2 ],
}).catch(() => { }).catch(() => {
// If we cannot send the DM, we do not want to throw an error. // If we cannot send the DM, we do not want to throw an error.
return null; return null;