Basically you can search anything on YouTube ex: !yt Discord - BOT will then make an embed and give you link with results on "Discord"
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let search = context.params.event.content.split(' ').splice(1).join('%20');
let result = `https://www.youtube.com/results?search_query=${search}`
let message = context.params.event.content;
if(message.startsWith(`!yt`)) {
await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: ``,
embed: {
title: `Here is your link.`,
description: ``,
url: `https://www.youtube.com/results?search_query=${search}`,
color: 0x00AA00,
thumbnail: {
url: `https://techbullion.com/wp-content/uploads/2021/03/YouTube-Tips.png`,
height: 0,
width: 0,
}
}
});
}