Add support for fields in embeds
This commit is contained in:
parent
d5cb03502f
commit
582dff5243
1 changed files with 4 additions and 0 deletions
|
@ -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 += "]";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue