Michael Knowles
Michael Knowles
DIAdiscord.js - Imagine an app
Created by Michael Knowles on 9/1/2023 in #djs-questions
.setTimestamp is not a function
client.on("messageCreate", (message) => {
if (message.content.startsWith("ping")) {
const exampleEmbed = new EmbedBuilder()
.setColor('#2ecc71') // lime green
.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.',
'
client.on("messageCreate", (message) => {
if (message.content.startsWith("ping")) {
const exampleEmbed = new EmbedBuilder()
.setColor('#2ecc71') // lime green
.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] });
}
});
'
.setTimestamp()
].join('\n'));

message.channel.send({ embeds: [exampleEmbed] });
}
});
7 replies