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 toolkit15mo 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
Danial15mo ago
It's supposed to be new EmbedBuilder().setTitle("...").setDescription("...")...
Epsilon
EpsilonOP15mo ago
Hmm.
Epsilon
EpsilonOP15mo ago
Same syntax error.
No description
Epsilon
EpsilonOP15mo ago
No description
Danial
Danial15mo ago
Yes, because what you have there is wrong, look at the code I sent and then the one you have
Epsilon
EpsilonOP15mo ago
Oh. Thanks.
Danial
Danial15mo ago
Of course
Epsilon
EpsilonOP15mo ago
Brand new to discord.js and javascript. Thanks a ton!
Want results from more Discord servers?
Add your server