diff --git a/src/toOpenAIMessages.ts b/src/toOpenAIMessages.ts index 7d61456..5e21a7e 100644 --- a/src/toOpenAIMessages.ts +++ b/src/toOpenAIMessages.ts @@ -24,6 +24,10 @@ export function formatMessage(message: DiscordMessage): string { rvalue += embed.author ? ` by ${embed.author.name}` : ""; rvalue += (embed.title || embed.author) && embed.description ? " -": ""; rvalue += embed.description ? ` ${embed.description}` : ""; + + for (const field of embed.fields) { + rvalue += ` [${field.name} - ${field.value}]`; + } rvalue += "]"; }