mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-31 06:51:02 +00:00
fix(bots/discord): use APIEmbed for response config
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user