diff --git a/src/handleCreateNotify.js b/src/handleCreateNotify.js index b6448af..5334957 100644 --- a/src/handleCreateNotify.js +++ b/src/handleCreateNotify.js @@ -1,4 +1,4 @@ -import { ButtonStyle, ChannelType, ComponentType } from 'discord.js' +import { ButtonStyle, ChannelType, ComponentType, MessageFlags } from 'discord.js' /** * @typedef {import('./logger.js').Logger} Logger * @typedef {import('discord.js').AnyThreadChannel} AnyThreadChannel @@ -21,8 +21,8 @@ export async function handleCreateNotify(logger, thread, setting) { .send({ content: setting.onCreate(thread.ownerId), components, + flags: MessageFlags.SuppressEmbeds, }) - .then(it => it.suppressEmbeds()) logger.info( `"${thread.name}" (${thread.id}) has been created in "${thread.parent.name}" (${thread.parentId}).`