Home > Mobile >  Send message with multiple local images in a single line - discord.js
Send message with multiple local images in a single line - discord.js

Time:05-03

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.

CodePudding user response:

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>

  • Related