#How send multiply embeds in one message?

31 messages · Page 1 of 1 (latest)

tender burrow
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

sand mural
#

Hello everyone

agile summit
#

what is embed1, embed2 and embed3?

#

because that is how you send multiple embeds, so my only question are the embeds themselves

sand mural
# agile summit what is embed1, embed2 and embed3?

const embeds1 = {
    title: 'test',
    description: 'test'
    image: { url: 'https://discord.com/assets/b6a3073e1281d1ef79d48ef130c183b2.svg' }
};

const embeds2 = {
    title: 'test',
    description: 'test'
    image: { url: 'https://discord.com/assets/b6a3073e1281d1ef79d48ef130c183b2.svg' }
};

const embeds3 = {
    title: 'test',
    description: 'test'
    image: { url: 'https://discord.com/assets/b6a3073e1281d1ef79d48ef130c183b2.svg' }
};

agile summit
#

hmm, alright, and no errors?

sand mural
#

no

#

catch not return error

then return new message with embeds

#

but embeds no

agile summit
#

so it sends a message?

sand mural
#

I tried different methods, but it didn't work for me. I'm probably doing something wrong.

agile summit
#

does it send anything?

#

anything at all

sand mural
#

@agile summit

#

oh, my mistake

#

sends only first embeds without other

agile summit
#

and you're sure that is the code that is being run?

sand mural
#

yes

#

I decided to send several messages at once. Maybe tomorrow with a fresh mind I'll figure out where I made a mistake. thanks.

agile summit
#

alr 👍

river bone
#

Have you tried just putting in the embeds in the embed field like [embeds1, embeds2, embeds3] without the variable?

#

Not sure why it would make a difference but its worth a shot.

#

Actually

#

It looks like you aren't using the EmbedBuilder 🤔

#

Try making your embeds with the EmbedBuilder and that should hopefully resolve the problem

agile summit
#

if they werent valid embeds he would get an error when sending the message

river bone
#

Its worth trying just to see if it makes a difference 🤷‍♂️

fallow echo
sand mural
#

@fallow echo ok tnx