Example of an embedd with thumbnail and gif. This is based on an interactive game for my server, feel free to change and modify to your needs.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let messagePrompts = [
'https://media.discordapp.net/attachments/818528627233783838/823258452267630614/ezgif.com-gif-maker_15.gif?width=447&height=162',
`` //add more if you want to randomise it
];
module.exports = async (event, context) => {
if (event.content.toLowerCase().startsWith(`.go walk`)) {
let messageChoice = Math.floor(Math.random() * messagePrompts.length);
let message = messagePrompts[messageChoice];
await lib.discord.channels['@0.0.3'].messages.create({
channel_id: `${event.channel_id}`,
content: [``].join('\n'),
embed: {
title: `Let's Go For A Stroll!`,
description: `↳ | Out and about, what will you do?
⌣⌣⌣⌣⌣⌣⌣⌣⌣⌣⌣⌣ ‧₊˚✧
ʚ︱\`.bakery visit\`
ʚ︱\`.bakery work\`
ʚ︱\`.boba visit\`
ʚ︱\`.boba work\`
⌣⌣⌣⌣⌣⌣⌣⌣⌣⌣⌣⌣ ‧₊˚✧
⇢ | You see something shiny on the ground, will you go \`.scavenge\`?
⇢ | Will you sit by the river and \`.paint\`?
⇢ | Will you venture into the forest and \`.forage\`?
⇢ | Will you wait until night time to \`.stargaze?\`
⌣⌣⌣⌣⌣⌣⌣⌣⌣⌣⌣⌣ ‧₊˚✧`, //this description is for my interactive `game`, use this as a guide or completely change it to fit your needs!
type: 'rich',
color: 0x6ebf77,
image: {
height: 500,
width: 500,
url: `${message}`,
},
thumbnail: {
url: `https://cdn.discordapp.com/attachments/818528627233783838/823258040101896232/f6892c413ad0bf92cb6c5e0f841a9108.gif`,
},
},
});
}
};