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
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
536900d255
🚧 dm channels
2021-05-31 20:32:23 +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
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
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
f60d929cc3
⬆️ npm i @fosscord/server-util@1.3.12
2021-05-30 16:46:20 +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
7684f7f398
Merge branch 'master' of https://github.com/fosscord/fosscord-api
2021-05-30 01:44:50 +02:00
Flam3rboy
3254c31e02
✨ user avatar
2021-05-30 01:44:15 +02:00
Flam3rboy
d61bbe8293
✨ message attachments
2021-05-30 01:44:09 +02:00
Flam3rboy
c6320db551
Merge pull request #152 from luth31/master
...
Move TS compilation to docker image build
2021-05-29 21:37:07 +02:00
Paul Munteanu
20cbccf6cf
Remove obsolete npx patch-package command
2021-05-29 22:36:41 +03:00
Paul Munteanu
fbfe757c9e
Dockerfile: run app instead of recompiling
2021-05-29 22:33:31 +03:00
Paul Munteanu
90f2536e41
Merge branch 'master' of github.com:luth31/fosscord-api
2021-05-29 22:27:09 +03:00
Paul Munteanu
04c5e490d5
Build on start for the CONTRIBUTORS
2021-05-29 22:26:45 +03:00
Paul Munteanu
a4c5cd360d
Merge branch 'fosscord:master' into master
2021-05-29 21:46:47 +03:00
Paul Munteanu
5e7771c4ac
Compile TS during Docker image build
2021-05-29 21:35:39 +03:00
Flam3rboy
b59d32f9bb
⚡ improve asset caching
2021-05-29 20:04:09 +02:00
Paul Munteanu
cfe7338dc6
Merge branch 'fosscord:master' into master
2021-05-29 19:36:00 +03:00
Flam3rboy
a86efe97bb
🎨 reformat
2021-05-29 18:22:52 +02:00
Paul Munteanu
553a3d5daf
Merge branch 'fosscord:master' into master
2021-05-29 16:51:55 +03:00
Flam3rboy
1383911771
automatically embed links in message
2021-05-28 22:40:34 +02:00
Flam3rboy
3370ee50c5
Create codeql-analysis.yml
2021-05-28 18:10:59 +02:00
Flam3rboy
0c8ef1324f
Delete TEST
2021-05-28 18:08:33 +02:00
Paul Munteanu
c6ab039787
Merge branch 'master' of https://github.com/fosscord/fosscord-api
2021-05-28 03:39:33 +03:00
Flam3rboy
77528c40dc
🚧 permissions
2021-05-28 02:10:00 +02:00
Flam3rboy
57a17933fb
test
2021-05-28 00:27:21 +02:00
Flam3rboy
b00815b025
Merge branch 'master' of https://github.com/fosscord/fosscord-api
2021-05-27 18:15:33 +02:00
Flam3rboy
d2e2822e89
🐛 fix bans
2021-05-27 18:15:31 +02:00
Flam3rboy
c2eecb9500
⬆️ npm i @fosscord/server-util@1.3.5
2021-05-26 13:31:06 +02:00
Flam3rboy
26d7ed8368
🐛 fix EMAIL_ALREADY_REGISTERED error message
2021-05-26 13:30:48 +02:00
Flam3rboy
e23c82fff0
optional GATEWAY .env variable
2021-05-26 13:30:29 +02:00
Flam3rboy
3c9e48cbda
fix message loading
2021-05-26 13:30:10 +02:00
Flam3rboy
11d65e42be
npm i @fosscord/server-util@1.3.3
2021-05-25 01:11:18 +02:00
Flam3rboy
0a51c58244
Merge branch 'master' of https://github.com/fosscord/fosscord-api
2021-05-24 20:57:23 +02:00
Flam3rboy
ad7a5f0ee5
🐛 fix route loading
2021-05-24 20:57:22 +02:00
Flam3rboy
8512bed8f1
Merge pull request #149 from fosscord/l10n_master
...
New Crowdin updates
2021-05-24 20:56:22 +02:00
Flam3rboy
4d8318765e
New translations auth.json (Chinese Simplified)
2021-05-24 20:55:09 +02:00
Flam3rboy
15c0a19f9f
New translations common.json (Chinese Simplified)
2021-05-24 20:55:08 +02:00
Flam3rboy
a4da9fb5e5
New translations common.json (Portuguese, Brazilian)
2021-05-24 20:55:05 +02:00
Flam3rboy
1c836047a7
New translations auth.json (Portuguese, Brazilian)
2021-05-24 20:55:00 +02:00
Flam3rboy
d92c1cc413
New translations common.json (Portuguese)
2021-05-24 20:54:53 +02:00
Flam3rboy
45e6753975
New translations auth.json (Portuguese)
2021-05-24 20:54:52 +02:00
Flam3rboy
bd32d183b6
npm i @fosscord/server-util@1.3.2
2021-05-24 20:48:35 +02:00