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