diff --git a/commandJson.js b/commandJson.js index 11b0a4b..ace5023 100644 --- a/commandJson.js +++ b/commandJson.js @@ -47,5 +47,6 @@ console.log(JSON.stringify([ about.toJSON(), add.toJSON(), remove.toJSON(), - list.toJSON() + list.toJSON(), + dm.toJSON() ])); \ No newline at end of file diff --git a/src/commands/add.ts b/src/commands/add.ts index c945e91..3175e6b 100644 --- a/src/commands/add.ts +++ b/src/commands/add.ts @@ -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().addComponents( diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index 7407783..9ceb8bd 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -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;