hackclubnmit / hackclubnmit/workshops

cannot send an empty message

Open
#64 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
17
Forks
23
PR merge metrics
No merged PRs in 30d

Description

/home/pi/discordbots/aichat/node_modules/discord.js/src/rest/RequestHandler.js:170
return reject(new DiscordAPIError(request.path, data, request.method, res.status));
^

DiscordAPIError: Cannot send an empty message
at RequestHandler.execute (/home/pi/discordbots/aichat/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
method: 'post',
path: '/channels/872522078098686053/messages',
code: 50006,
httpStatus: 400
}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the DiscordAPIError stack trace in node_modules/discord.js/src/rest/RequestHandler.js and trace the request back to the bot's message-sending entry point. Reproduce the failing interaction and identify why the outgoing content is empty; done means the bot no longer attempts to send empty messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.