Unable to set embed color to RANDOM

Viewed 23

I am trying to create an embed with a random color using the following code. According to the docs, .setColor() should accept a ColorResolvable one of which is 'RANDOM' but i keep getting the error :

Unable to convert color to a number.
code : ColorConvert

Code :

const embed = new EmbedBuilder()
            .setColor('RANDOM')
            .setDescription("Some description")
await interaction.reply({embeds : [embed]})
0 Answers
Related