1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00
Commit Graph

1747 Commits

Author SHA1 Message Date
Flam3rboy
cd5b0fa37e
Merge pull request #151 from fosscord/l10n_master
New Crowdin updates
2021-06-19 17:28:32 +02:00
Umimaso
4c0c09c8bc feat: add routing for unversioned api requests
Create new route for /api which can handle routing of unversioned
requests. Update regex for NO_AUTHORIZATION_ROUTES to support
unversioned requests.
2021-06-19 15:49:49 +01: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
df321dbc04 New translations common.json (Lithuanian) 2021-06-19 13:50:48 +02:00
Flam3rboy
36508c4dc1 New translations auth.json (Lithuanian) 2021-06-19 13:50:47 +02:00
Flam3rboy
8437156fd3 🐛 fix identify struct 2021-06-09 20:10:39 +02:00
Flam3rboy
f18b651dbd New translations auth.json (Portuguese) 2021-06-09 17:52:36 +02:00
Flam3rboy
8bd1dc2ff9 New translations common.json (Portuguese) 2021-06-08 17:56:39 +02:00
Flam3rboy
761633e119 New translations common.json (Portuguese) 2021-06-07 17:56:59 +02:00
Flam3rboy
cbe60955b4 Guild invites 2021-06-02 19:22:22 +02:00
Flam3rboy
491565aef8 add explicit types to req and res 2021-05-31 21:03:09 +02:00
Flam3rboy
532d7b16a1 🐛 make server options optional 2021-05-31 21:01:49 +02:00
Flam3rboy
e4fc61dc34 add explicit types to req and res 2021-05-31 21:01:28 +02:00
Flam3rboy
f0d59bb37d start.ts file 2021-05-31 20:41:44 +02:00
Flam3rboy
9c86deaa7d 1.3.16 2021-05-31 20:33:08 +02:00
Flam3rboy
0713f89bba 🎨 rename recipients -> recipient_ids 2021-05-31 20:32:50 +02:00
Flam3rboy
24a7accc16 🐛 fix config 2021-05-31 20:32:37 +02:00
Flam3rboy
536900d255 🚧 dm channels 2021-05-31 20:32:23 +02:00
Flam3rboy
5856047e3d start.ts file 2021-05-31 20:32:03 +02:00
Flam3rboy
e12197d568 🎨 create start.ts 2021-05-31 00:51:54 +02:00
Flam3rboy
ae1a1fddd3
Initial commit 2021-05-31 00:48:51 +02:00
Flam3rboy
4ae6430398 1.3.15 2021-05-30 23:34:21 +02:00
Flam3rboy
2fa12784a1 Channel recipients 2021-05-30 23:34:07 +02:00
Flam3rboy
3f4df736d0 npm i @fosscord/server-util@1.3.14 2021-05-30 22:15:01 +02:00
Flam3rboy
3b9e4a23c5 relationships 2021-05-30 22:14:56 +02:00
Flam3rboy
b6359d87ae npm i @fosscord/server-util@1.3.14 2021-05-30 22:14:52 +02:00
Flam3rboy
711dc1c4d4 🐛 fix getPublicUser 2021-05-30 22:14:35 +02:00
Flam3rboy
ea58f5b535 npm i @fosscord/server-util@1.3.14 2021-05-30 22:14:19 +02:00
Flam3rboy
a9af9223d3 1.3.14 2021-05-30 22:13:31 +02:00
Flam3rboy
d862bb2488 🐛 fix Ready event 2021-05-30 22:12:56 +02:00
Flam3rboy
abfe9b03cd 🐛 fix empty author 2021-05-30 22:12:46 +02:00
Flam3rboy
0feb3b635a Friends Relationships 2021-05-30 22:12:29 +02:00
Flam3rboy
0ff1daeaff Relationship types 2021-05-30 20:24:45 +02:00
Flam3rboy
3ccf598174 New translations common.json (Arabic) 2021-05-30 18:43:35 +02:00
Flam3rboy
b7b822316d New translations auth.json (Arabic) 2021-05-30 18:43:34 +02:00
Flam3rboy
c534248e0f Channel permission overwrites 2021-05-30 17:16:14 +02:00
Flam3rboy
5aaf803837 ⬆️ npm i @fosscord/server-util@1.3.13 2021-05-30 17:06:14 +02:00
Flam3rboy
c726aeb81e ⬆️ npm i @fosscord/server-util@1.3.13 2021-05-30 17:06:05 +02:00
Flam3rboy
e45c164992 ⬆️ npm i @fosscord/server-util@1.3.13 2021-05-30 17:06:02 +02:00
Flam3rboy
5460419cd8 1.3.13 2021-05-30 17:05:08 +02:00
Flam3rboy
3bcfb7f897 🐛 fix activity model 2021-05-30 17:04:55 +02:00
Flam3rboy
95b86af2a5 ⬆️ npm i @fosscord/server-util@1.3.12 2021-05-30 16:46:32 +02:00
Flam3rboy
70db286481 ⬆️ npm i @fosscord/server-util@1.3.12 2021-05-30 16:46:23 +02:00
Flam3rboy
f60d929cc3 ⬆️ npm i @fosscord/server-util@1.3.12 2021-05-30 16:46:20 +02:00
Flam3rboy
7f718eb895 1.3.12 2021-05-30 16:45:00 +02:00
Flam3rboy
cc00b2eb33 🐛 fix models with type property 2021-05-30 16:44:50 +02:00
Flam3rboy
6960774210 increase upload limit 2021-05-30 01:53:01 +02:00
Flam3rboy
e34e30dbb9 ⬆️ npm i @fosscord/server-util@1.3.11 2021-05-30 01:46:32 +02:00
Flam3rboy
335612c51f ⬆️ npm i @fosscord/server-util@1.3.11 2021-05-30 01:46:30 +02:00
Flam3rboy
066bd9fa21 ⬆️ npm i @fosscord/server-util@1.3.11 2021-05-30 01:46:28 +02:00