我正在尝试制作一个命令,列出所有命令,如下所示:
- 命令1
- 命令2
- 命令3等等
**我该怎么做?我试过这个:
module.exports = {
name: 'help',
description: "Lists commands",
execute(message, args) {
message.channel.send('Prefix = ! hello: greets you in different languages ping: :ping_pong: help: Shows this List info: Shows Info About @LlamaBot#0241');
}
}
以下是代码:
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "help",
description: "Help cmd",
execute: async (client, message, args) => {
const newEmbed = new MessageEmbed()
.setColor('#000000')
.setTitle('Commands')
.setDescription('Commands')
.addFields(
{name: 'command', value: '-command'},
)
message.channel.send(newEmbed);
}
}