spacebarchat / spacebarchat/server

Support for {files: [{file, name}]} structure while sending messages with attachments

Open
#1,508 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.2k
Forks
323
Avg merge
14h 48m
Merged PRs (30d)
4

Description

Is your feature request related to a problem? Please describe.
The only way to send messages with images using a library like Discord.js is by using this dict structure when sending a message(e.g msg.reply({files: [{file: "filepath.png", name: "file.png"}])}), but Spacebar only supports the cloud upload dict structure for attachments, and so returns that required keys are missing in the request

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by locating the message-send handling and attachment validation, then compare the supported cloud upload structure with {files: [{file, name}]}. Done means messages using that structure are accepted without the missing-keys error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.