By using this code as a template, you will be able to create a /help command easily! Make sure you register your command at 'https://omg.ac/command' too! Preview: https://link.notedwin.ga/response-image
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
await lib.discord.interactions['@1.0.1'].responses.create({
token: `${context.params.event.token}`,
content: '',
embeds: [
{
type: 'rich',
title: `Here are some commands you can use`,
description: '',
color: 0x00ffff,
fields: [
{
name: `command 1:`,
value: `what the command can do.`,
},
{
name: `command 2:`,
value: `what the command can do.`,
},
{
name: `command 3:`,
value: `what the command can do.`,
},
],
},
],
response_type: 'CHANNEL_MESSAGE_WITH_SOURCE'
});