feat: initial prototype #6

Merged
naomi merged 4 commits from feat/init into main 2025-07-21 16:53:49 -07:00
3 changed files with 5 additions and 2 deletions
Showing only changes of commit 4130fccb0f - Show all commits
+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;