mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
This reverts some of the changes in f451be05 so that this works:
```ts
const embed: MessageEmbedOptions = {
fields: [{
// fixed stuff
}],
};
if (/* condition */) {
embed.fields.push({
// conditional stuff
});
}
```
See https://github.com/discordjs/discord.js/pull/4692#issuecomment-687252066.