use !color <hex code> and it will return the embed that color is your hex
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
if (context.params.event.content.split(` `)[1]) {
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: `${context.params.event.content.split(` `)[1]}`,
color: parseInt(`0x${context.params.event.content.split(` `)[1]}`),
},
],
});
} else {
await lib.discord.channels['@0.3.0'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: '',
tts: false,
embeds: [
{
type: 'rich',
title: `Error`,
description: `Hex not found, please try \`!color \``,
color: 0x00ffff,
},
],
});
}