'Send message with multiple local images in a single line - discord.js

Is this possible to send messages with multiple local images in a single line?

I'm using MessageAttachment here is the code

const attachment = new MessageAttachment(EmojiPack1/green/g_a.png)

message.reply({files: [attachment]})

I'm using it in a for loop But it sends a message with the line breaker

Can you please guide me on how to make it a single message of a single line having multiple images?

enter image description here

Have to make it in a single line. like this enter image description here Thank you.



Solution 1:[1]

There is no way to send images inline, instead you should use custom emojis.

You can use a private server for the bot that has all these letters as custom emojis. Then to get the emoji string put a backslash in front of it to get a string like this: <a:THIS:930734808169086986>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1