const Discord = require("discord.js"); const { SlashCommandBuilder } = require('@discordjs/builders'); const fs = require('fs') const array = [] const space = array.join("\n") const data = new SlashCommandBuilder() .setName('help') .setDescription("Help With Command's"); module.exports.execute = async (client, interaction, config) => { let commands = fs.readdirSync(__dirname).forEach((command) => { let prop = require(`./${command}`) array.push(prop.info.name) }) const embed = new Discord.EmbedBuilder() .setTitle("Heyyy, Here's Commands") .setDescription(`Heyyy, Heard You Needed Help Using Me. Here Are My Command's`) .setColor('#AD1457') .addFields( { name: 'My Commands', value: `${space}`, inline: true }, { name: `Webpage Command's`, value: 'Coming Soon', inline: true }, ) .setAuthor({name: 'NeroGizmo', url: 'https://google.com/'}) return interaction.reply({ embeds: [embed]}); }; module.exports.options = { ...data.toJSON() }; module.exports.config = { enabled: true, }; module.exports.info = { name: 'help', };