Say for example, you do not like the dynamic help command already given (gasp), this is how you would create very simple dynamic help command.
help.js
constDiscord=require("discord.js");module.exports= { name:"help", aliases: ["pong"],execute({ message, hkandler }) {let reply = []reply.push("Here's a list of all my commands!")hkandler.commands.forEach((cmd) => {reply.push(cmd.name) })let embed =newDiscord.MessageEmbed().setColor("RANDOM").setDescription(reply)message.channel.send(embed) },};
help.ts
import { Message, MessageEmbed } from"discord.js"import HKandler from"hkutilities/dist/structures/hkandler"export= { name:"help",execute({ message, hkandler }: {message:Message, hkandler:HKandler}) {let reply = []reply.push("Here's a list of all my commands!")hkandler.commands.forEach((cmd: { name:string; }) => {reply.push(cmd.name) })let embed =newMessageEmbed().setColor("RANDOM").setDescription(reply)message.channel.send(embed) },};