List all of the invites and info about the invites from a guild in an embed. Use the command !invites to see them
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let invites = await lib.discord.invites['@0.1.0'].list({
guild_id: context.params.event.guild_id,
});
console.log(invites);
let guildName = invites[0].guild.name;
let list = invites.map((i) => `**Invite:** https://discord.gg/${i.code}\n**Created by:** <@${i.inviter.id}>\n**Channel:** <#${i.channel.id}>\n\n`).join('');
await lib.discord.channels['@0.3.1'].messages.create({
channel_id: context.params.event.channel_id,
content: ``,
embeds: [{
title: `Invites for ${guildName}`,
description: list,
color: 0x5865f2,
}],
});