I have a few commands from specific categories and I want to list them when user execute a command! For example one of my commands:
const Discord = require('discord.js')
const { MessageEmbed } = require('discord.js')
module.exports = {
name: "ping",
description: "Bot websocket ping",
category: "general",
run: async (Raphy, message, args) => {
message.channel.send(`${Raphy.ws.ping} ws ping`);
}
}
I want to list commands in General category if user execute !commands General, how can I do this?