It is not being possible to send array?

In the past, I sent an array with a d20 scroll in a certain way, I tried the same way I always did, and it was giving an error Error: throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData); ^ DiscordAPIError[50006]: Cannot send an empty message requestBody: { files: [], json: { content: undefined, tts: false, nonce: undefined, embeds: undefined, components: undefined, username: undefined, avatar_url: undefined, allowed_mentions: undefined, flags: undefined, message_reference: undefined, attachments: undefined, sticker_ids: undefined, thread_name: undefined } }, rawError: { message: 'Cannot send an empty message', code: 50006 }, code: 50006, status: 400, method: 'POST', url: 'https://discord.com/api/v10/channels/1030631336295288943/messages'
6 Replies
d.js toolkit
d.js toolkit15mo ago
• 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.
( ・・)つ
( ・・)つ15mo ago
discord.js@14.7.1 // Node v16.9.0
chewie 🌈
chewie 🌈15mo ago
no, its not possible to send an array
( ・・)つ
( ・・)つ15mo ago
would there be another way then?
Pulse
Pulse15mo ago
you can just add .join('\n') if you want it to print similar to how it looks there
( ・・)つ
( ・・)つ15mo ago
okay I'll try, anything I'll come back here haha