fix(bots/discord): use APIEmbed for response config

This commit is contained in:
PalmDevs
2024-04-03 15:38:36 +07:00
parent c1e1953762
commit 35b944800a
2 changed files with 4 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ export const createMessageScanResponseEmbed = (
response: ConfigMessageScanResponseMessage,
mode: 'ocr' | 'nlp' | 'match',
) => {
const embed = new EmbedBuilder().setTitle(response.title)
const embed = new EmbedBuilder().setTitle(response.title ?? null)
if (response.description) embed.setDescription(response.description)
if (response.fields) embed.addFields(response.fields)