1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-07 19:32:34 +01:00
Commit Graph

8 Commits

Author SHA1 Message Date
Flam3rboy
47d30153f4 ⬆️ update dev client version 2021-06-27 23:26:49 +02:00
Umimaso
f10df31f5c feat: add widget endpoints
Implemented the four widget related endpoints of the api. Partial user
object being returned as part of the widget.json endpoint [1] is an
intentional choice related to privacy [2].

The widget.json endpoint will require additional changes upon completion
of other work. Member details will need to return extra key/values for
connected users to voice channels. An additional avatar_url value will
hold an unique avatar url for the user + guild, fetched via a CDN
endpoint widget-avatars.

New dependencies `canvas` and `image-size`. Canvas is used to create the
widget.png endpoint image [3]. Image-size is used to set the canvas'
size to match the widget template images.

Use regex in determining if a NO_AUTHORIZATION_ROUTES is hit or not.

[1] https://discord.com/developers/docs/resources/guild#get-guild-widget
[2] https://github.com/discord/discord-api-docs/issues/1287
[3] https://discord.com/developers/docs/resources/guild#get-guild-widget-image

Closes: #9, #110
2021-06-19 14:50:11 +01:00
Flam3rboy
3254c31e02 user avatar 2021-05-30 01:44:15 +02:00
Flam3rboy
11d65e42be npm i @fosscord/server-util@1.3.3 2021-05-25 01:11:18 +02:00
Flam3rboy
8f87546aeb use new config 2021-05-24 20:47:06 +02:00
Flam3rboy
7d2a7943a6 📄 GPL V3 license 2021-05-08 12:55:07 +02:00
Flam3rboy
f5180084ff 🔊 log gateway events 2021-04-07 00:25:17 +02:00
xnacly
1c2b261ce9 rename 'client' -> 'client_test' 2021-01-25 19:36:42 +01:00