Search emojis of your choice with this Commands! All you need is an /emoji command with a string option. Don't forget to register your command in the command builder Credits: https://autocode.com/ashwinkumar/snippets/cachsnpt_bxtDsfsbkf2WJdVfvnyKhbuTiGP4dqUyXm6i/
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let search = context.params.event.data.options[0].value;
let result = `https://emojipedia.org/search/?q=${search}`;
let message = context.params.event.content;
await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: ``,
embed: {
title: ` `,
description: ``,
color: 0x7289da,
author: {
name: `Here are your search results`,
icon_url: `https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/facebook/304/orange-book_1f4d9.png`,
},
fields: [
{
name: `You Searched For: ||${search}||`,
value: `Link: [Click here](https://emojipedia.org/search/?q=${search})`,
},
],
footer: {
text: `Requested by ${context.params.event.member.user.username}`,
},
timestamp: `${new Date().toISOString()}`,
},
});