How to end this argument string? (and how to make the code.. work?)

Developing in replit, giving me an error with syntax errors, argument string errors and the bunch. Thanks for the help.
const { Client, GatewayIntentBits, EmbedBuilder, ActivityType, ActionRowBuilder, ButtonBuilder, ButtonStyle, Events, ModalBuilder, TextInputBuilder, TextInputStyle } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds] });

const TOKEN = process.env['TOKEN']

client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);

client.user.setPresence({ activities: [{ name: 'over a ton of cheeseburgers.', type: ActivityType.Watching }], status: 'online' })

});
const embednew = EmbedBuilder(
.setTitle("embeddy embed")
.setDescription("this is an embed")
.setColor(0x01611F))


client.on('interactionCreate', async interaction => {
if (!interaction.isChatInputCommand()) return;

if (interaction.commandName === 'cheeseburger') {
await interaction.reply (embeds: [embednew])

}
});

client.login(TOKEN);
const { Client, GatewayIntentBits, EmbedBuilder, ActivityType, ActionRowBuilder, ButtonBuilder, ButtonStyle, Events, ModalBuilder, TextInputBuilder, TextInputStyle } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds] });

const TOKEN = process.env['TOKEN']

client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);

client.user.setPresence({ activities: [{ name: 'over a ton of cheeseburgers.', type: ActivityType.Watching }], status: 'online' })

});
const embednew = EmbedBuilder(
.setTitle("embeddy embed")
.setDescription("this is an embed")
.setColor(0x01611F))


client.on('interactionCreate', async interaction => {
if (!interaction.isChatInputCommand()) return;

if (interaction.commandName === 'cheeseburger') {
await interaction.reply (embeds: [embednew])

}
});

client.login(TOKEN);
No description
9 Replies
d.js toolkit
d.js toolkit2y ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Danial
Danial2y ago
It's supposed to be new EmbedBuilder().setTitle("...").setDescription("...")...
Epsilon
EpsilonOP2y ago
Hmm.
Epsilon
EpsilonOP2y ago
Same syntax error.
No description
Epsilon
EpsilonOP2y ago
No description
Danial
Danial2y ago
Yes, because what you have there is wrong, look at the code I sent and then the one you have
Epsilon
EpsilonOP2y ago
Oh. Thanks.
Danial
Danial2y ago
Of course
Epsilon
EpsilonOP2y ago
Brand new to discord.js and javascript. Thanks a ton!

Did you find this page helpful?