Use the prefix command "?help" to recieve a message with the commands you note on line 18 and 22.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let event = context.params.event
if (event.content.startsWith(`?help`)){//change the prefix to anything
await lib.discord.channels['@0.1.2'].messages.create({
"channel_id": `${context.params.event.channel_id}`,
"content": "",
"tts": false,
"embeds": [
{
"type": "rich",
"title": `Command list `,
"description": "",
"color": 0x00FFFF,
"fields": [
{
"name": `fun commands `, //you can change this
"value": "\`some commands\` \`another command\` \`lol\`" //change the commands to your commands
},
{
"name": `moderation commands`, //you can change this
"value": "\`ban\` \`mute\` \`kick\` \`warn\`" //change this to anything you want
}
],
"footer": {
"text": `Requested by ${context.params.event.author.username}` //dont change
}
}
]
});
}