client.on("message", (message) => {
message.channel.send({
embed: {
color: 3447003,
author: {
name: client.user.username,
icon_url: client.user.avatarURL
},
title: "commands",
description: "all current commands",
fields: [{
name: "admin only",
value: "ban"
},
{
name: "moderator only",
value: "kick"
},
{
name: "everyone",
value: "ping \n help \n invite \n sinvite \n gay \n owner "
}],
timestamp: new Date(),
footer: {
icon_url: client.user.avatarURL,
text: "~Isabelle~"
}
}
});
^
SyntaxError; Unexpected end of input
I'm using discord.js within node.js, and I'm unsure what's causing this error. I've tried checking back for typos but I haven't caught any. Help?
});for theclient.oncallback. Run your code through a linter like jslint, and even having consistent formatting like you can find on jsbeautifier.org can help you solve these syntax issues much faster