Put the function inside a on
event:
const Discord = require('discord.js')
const client = new Discord.Client();
client.on("message", (message) => {
const embed = new Discord.messageEmbed()
embed.setAuthor(`Phaze Bot`)
embed.setTitle(`Commands List`)
embed.setDescription(`$kick: kicks a member
$ban: bans a member
$help music:
displays music commands
$help: displays the help screen`)
message.channel.send(embed);
})
If you want to send the message to specific channel as you mentioned, you would want to use something like this:
client.channels.cache.get(CHANNEL_ID).send(embed)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…