#Cannot send file

18 messages · Page 1 of 1 (latest)

terse elk
#
 await interaction.reply({
        ephemeral: true,
        files: skin.map(
          (i) =>
            new AttachmentBuilder(
              Buffer.from(i.file, 'base64'),
              { name: `${i.name}.png` }
            )
        ),
      });

This code used to work in v13 but now silently fails with an interaction error

obsidian plumeBOT
#

• 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.

scenic lantern
#

files should be an array?

terse elk
#

files is an array

#

It says it’s an array of https://discord.js.org/#/docs/rest/main/typedef/RawFile but this site is blank

#

My AttachmentBuilder seems to be valid

scenic lantern
#

can u make this map in a variable and logged it @terse elk

timid crater
terse elk
terse elk
#

I'm logging debug events and using try catch

timid crater
#

Because you were talking about an interaction error but now say there’s no error so I‘m a bit confused

forest sand
#

You can use the other site

terse elk