Get all *GLOBAL* Emotes - !emotes
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
//Attention those are many emotes....
// make API request
let globalEmotes = await lib.twitch.chat['@release'].emotes.global.list();
let emotes = globalEmotes.data;
let emoteString = '';
emotes.forEach((emote) => {
emoteString += emote.name + ' ';
});
let response = await lib.twitch.chat['@1.0.0'].messages.create({
channel_id: `${context.params.event.channel.id}`,
content: `Here are all the ChannelEmotes: ${emoteString}`,
});