Skip to content

Commit

Permalink
use flags to suppress embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi committed Aug 23, 2024
1 parent 59ea812 commit 80f86fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handleCreateNotify.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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}).`
Expand Down

0 comments on commit 80f86fe

Please sign in to comment.