Add support for fields in embeds

This commit is contained in:
Wroclaw 2023-03-18 03:38:29 +01:00
parent d5cb03502f
commit 582dff5243

View file

@ -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 += "]";
}