client.on("messageCreate", (message) => {
if (message.content.startsWith("ping")) {
const exampleEmbed = new EmbedBuilder()
.setColor('#2ecc71')
.setTitle('General Rules')
.setDescription([
'These rules are in effect in the entire server, regardless of the channel.',
'Breaking these rules will be met with punishments from Moderators & Administators.',
'You are expected to follow these.',
'```' +
'1. No spam or self-promotion (server invites, advertisements, etc) without permission from a staff member. This includes DMing fellow members.' +
'\n\n2. Do not self-promote or advertise other servers, services or products.' +
'```'
.setTimestamp()
].join('\n'));
message.channel.send({ embeds: [exampleEmbed] });
}
});