generated from nhcarrigan/template
feat: initial prototype #6
+2
-1
@@ -47,5 +47,6 @@ console.log(JSON.stringify([
|
||||
about.toJSON(),
|
||||
add.toJSON(),
|
||||
remove.toJSON(),
|
||||
list.toJSON()
|
||||
list.toJSON(),
|
||||
dm.toJSON()
|
||||
]));
|
||||
+1
-1
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user