generated from nhcarrigan/template
fix: add flag
This commit is contained in:
+2
-1
@@ -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
@@ -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(
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user