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 toolkit2y 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.
( ・・)つ
( ・・)つOP2y ago
[email protected] // Node v16.9.0
chewie
chewie2y ago
no, its not possible to send an array
( ・・)つ
( ・・)つOP2y ago
would there be another way then?
Pulse
Pulse2y ago
you can just add .join('\n') if you want it to print similar to how it looks there
( ・・)つ
( ・・)つOP2y ago
okay I'll try, anything I'll come back here haha
Want results from more Discord servers?
Add your server