Sends a message to a channel with a random gif inside the embed.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
const colors = [
0xFF0000,
0x00FF00,
0x0000FF,
];
const randomColor = colors[Math.floor(Math.random() * colors.length)];
await lib.discord.channels['@0.1.1'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: '',
tts: false,
embed: {
type: 'rich',
title: 'Hello world',
description: '',
color: randomColor,
},
});