This repository has been archived on 2026-02-28 . You can view files and clone it, but cannot push or open issues or pull requests.
The `postHandleMessage` function is parsing links and adding them to the EmbedCache table if necessary. In the previous implementation, message updates would push to the embeds unconditionally. This commit parses links from the message and: 1. Normalizes the URLs - Useful for deduplicating similar URLs 2. Remove embeds with matching normalized URLs - Leaves all embeds except for ones with a `.url` property matching the updated message - This allows embeds to be re-ordered if the URL is moved 3. If no normalized URLs are found, remove all embeds 4. Take the deduplicated + normalized URLs and add an embed to the message and insert into the EmbedCache table (if necessary) This enables: 1. Embeds to be re-ordered by re-ordering links 2. Embeds to be removed by removing links and fixes: 1. Duplicate embeds being attached to a message when edited
Spacebar Server
About
Spacebar/server is a Discord backend re-implementation and extension. We aim to reverse engineer and add additional features to the Discord backend, while remaining completely backwards compatible with existing bots, applications, and clients.
This repository contains:
Documentation
And with documentation on how to set up your own server here, docs to set up either client here, and docs about bots here
Contributing
Clients
You should be able to use any client designed for Discord.com to connect to a Spacebar instance.
However, some incompatibilities still exist between Spacebar and Discord. For this reason, not every client will connect.
The WIP official Spacebar client will always work.
You can find a live version here.
Description
Languages
TypeScript
75.3%
C#
10.2%
JavaScript
8.1%
HTML
4.9%
Nix
0.6%
Other
0.8%