Please describe the problem you are having in as much detail as possible:
RichEmbed constructor don't accept MessageEmbed argument.
Include a reproducible code sample here, if possible:
const embeds: MessageEmbed[] = message.embeds;
const newEmbed: RichEmbed = new RichEmbed(embeds[0])
// error TS2345: Argument of type 'MessageEmbed' is not assignable to parameter of type 'RichEmbedOptions'.
Further details:
RichEmbed properties instead of passing MessageEmbed as argument.Should be fixed with the referenced commit.
In the meantime as a workaround you can cast the MessageEmbed to any before passing it to the constructor to not have to manually rewrite the whole thing.
Now i use the master branch, the issue is fixed on it by moving RichEmbed to MessageEmbed :)
Most helpful comment
Now i use the master branch, the issue is fixed on it by moving RichEmbed to MessageEmbed :)