spacebarchat / server

Spacebar server - A reimplementation of the Discord.com backend, built with Typescript and love
https://spacebar.chat
GNU Affero General Public License v3.0
1.46k stars 252 forks source link

Forwards incompatible Discord API versions: 0, 1, 2 #978

Open erkinalp opened 1 year ago

erkinalp commented 1 year ago

Is your feature request related to a problem? Please describe. Those API versions have some historical significance.

Describe the solution you'd like Support for these should be added with an opt-in guild feature/DM channel flag, as the permission system and the scope of the endpoints provided to the client were significantly narrower and the translations involved are lossy in either direction.

Additional context All those versions had been discontinued within the first months of Discord having started the service.

SamuelScheit commented 1 year ago

Why would you need to use the old apis? What "historical significance" do they have?

erkinalp commented 1 year ago

The simpler permission system they had could be useful in clients with extremely low memory budgets, such as Raspberry Pi Pico.

SamuelScheit commented 1 year ago

I don't think that use case is realistic. The pico has of 264kB internal RAM and a websocket connection + initial ready data can hardly be held in memory, while also running the os. IMO we should focus on the future api updates and not work on the old outdated api. same thing applies to #976