use !randomcolor and it will return random hex and the color
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let randomColor = Math.floor(Math.random() * 16777215).toString(16);
await lib.discord.channels['@0.3.0'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: ``,
tts: false,
embeds: [
{
type: 'rich',
title: `This is the color`,
description: `${randomColor}`,
color: parseInt(`0x${randomColor}`),
},
],
});