Chili
Chili
DIAdiscord.js - Imagine an app
Created by Chili on 5/29/2024 in #djs-questions
EmbedBuilder sends an empty message
Oh, haha thank you!
6 replies
DIAdiscord.js - Imagine an app
Created by Chili on 5/29/2024 in #djs-questions
EmbedBuilder sends an empty message
rawError: { message: 'Cannot send an empty message', code: 50006 },
code: 50006,
status: 400,
method: 'PATCH',
url: 'https://discord.com/api/v10/webhooks/1245388245353893918/aW50ZXJhY3Rpb246MTI0NTQzNDYyMzgxMTY1MzYzMjoxYXJsaU5aZGQxWEhqelZPVnBXNTJUMjB4UFVsWGdBc281SmdqYndtQkJ5aDRFQUhvc1VZbnFFU2VNQ3Y4cGN5OGhYU21oNEViM1BvWWdqaEhRUDBSZGFiRHA5M0pRV3ZONkwzam5KM3luRFI5d21JeTFjUHpBWENzNll4OWRocA/messages/@original'
}

Node.js v20.9.0
rawError: { message: 'Cannot send an empty message', code: 50006 },
code: 50006,
status: 400,
method: 'PATCH',
url: 'https://discord.com/api/v10/webhooks/1245388245353893918/aW50ZXJhY3Rpb246MTI0NTQzNDYyMzgxMTY1MzYzMjoxYXJsaU5aZGQxWEhqelZPVnBXNTJUMjB4UFVsWGdBc281SmdqYndtQkJ5aDRFQUhvc1VZbnFFU2VNQ3Y4cGN5OGhYU21oNEViM1BvWWdqaEhRUDBSZGFiRHA5M0pRV3ZONkwzam5KM3luRFI5d21JeTFjUHpBWENzNll4OWRocA/messages/@original'
}

Node.js v20.9.0
6 replies
DIAdiscord.js - Imagine an app
Created by Chili on 5/29/2024 in #djs-questions
EmbedBuilder sends an empty message
Full error stack trace below:
C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\@discordjs\rest\dist\index.js:730
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^

DiscordAPIError[50006]: Cannot send an empty message
at handleErrors (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\@discordjs\rest\dist\index.js:1133:23)
at async SequentialHandler.queueRequest (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\@discordjs\rest\dist\index.js:963:14)
at async _REST.request (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async InteractionWebhook.editMessage (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\discord.js\src\structures\Webhook.js:341:15)
at async ChatInputCommandInteraction.editReply (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:161:17) {
requestBody: {
files: [],
json: {
content: undefined,
tts: false,
nonce: undefined,
enforce_nonce: false,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined,
applied_tags: undefined,
poll: undefined
}
},
C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\@discordjs\rest\dist\index.js:730
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^

DiscordAPIError[50006]: Cannot send an empty message
at handleErrors (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\@discordjs\rest\dist\index.js:1133:23)
at async SequentialHandler.queueRequest (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\@discordjs\rest\dist\index.js:963:14)
at async _REST.request (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async InteractionWebhook.editMessage (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\discord.js\src\structures\Webhook.js:341:15)
at async ChatInputCommandInteraction.editReply (C:\Users\kralv\Desktop\Olympia\IT\Pegasus\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:161:17) {
requestBody: {
files: [],
json: {
content: undefined,
tts: false,
nonce: undefined,
enforce_nonce: false,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined,
applied_tags: undefined,
poll: undefined
}
},
6 replies