1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-22 18:51:36 +02:00
Commit Graph

1612 Commits

Author SHA1 Message Date
Flam3rboy
8f5bdf17ab 🐛 docker file 2021-06-24 17:22:00 +02:00
Flam3rboy
fe2d62cd47 allow bot tokens 2021-06-24 08:52:24 +02:00
Flam3rboy
ae1fc50c84 Message reply 2021-06-24 08:52:08 +02:00
Flam3rboy
4fc395823d 🚧 init 2021-06-24 08:51:39 +02:00
Flam3rboy
2be07d2f73 empty messages check + allowed mentions 2021-06-23 19:23:41 +02:00
Flam3rboy
c845d19226 🐛 fix .env file not loading 2021-06-23 19:15:37 +02:00
Flam3rboy
9b3f1f5a64 1.3.18 2021-06-23 18:06:41 +02:00
Flam3rboy
9a6c66484d 1.3.17 2021-06-23 18:06:10 +02:00
Flam3rboy
e3dda743af 🐛 fix checkToken 2021-06-23 18:06:00 +02:00
Flam3rboy
295fbabf0d 🎨 move widget templates to assets 2021-06-22 20:58:17 +02:00
Flam3rboy
e525977981
Merge pull request #157 from Umimaso/widget
feat: add widget endpoints, routing for unversioned api requests
2021-06-22 18:43:08 +02:00
Flam3rboy
bb0dec2a9f 🎨 clean up code
widget.json.ts: just return instead of long if statement + add ?. operators for error handling
widget.png.ts make path universal
widget.ts: remove unnecessary guild db query as getPermission already checks it
Widget.ts make parameters required
2021-06-22 18:41:21 +02:00
Flam3rboy
edcdf4d819
Merge pull request #158 from fosscord/l10n_master
New Crowdin updates
2021-06-20 14:57:26 +02:00
Flam3rboy
8b6cc4c759 New translations common.json (Lithuanian) 2021-06-20 13:46:01 +02:00
Flam3rboy
70368a7203 New translations auth.json (Lithuanian) 2021-06-20 13:46:01 +02:00
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