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

71 Commits

Author SHA1 Message Date
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
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
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
e34e30dbb9 ⬆️ npm i @fosscord/server-util@1.3.11 2021-05-30 01:46:32 +02:00
Flam3rboy
d61bbe8293 message attachments 2021-05-30 01:44:09 +02:00
Flam3rboy
1383911771 automatically embed links in message 2021-05-28 22:40:34 +02:00
Flam3rboy
c2eecb9500 ⬆️ npm i @fosscord/server-util@1.3.5 2021-05-26 13:31:06 +02:00
Flam3rboy
11d65e42be npm i @fosscord/server-util@1.3.3 2021-05-25 01:11:18 +02:00
Flam3rboy
bd32d183b6 npm i @fosscord/server-util@1.3.2 2021-05-24 20:48:35 +02:00
Diego Magdaleno
28424ed950 Fix: No more type casting required, rather take the gernics 2021-05-23 13:43:38 -05:00
Diego Magdaleno
55cf3b4b02 Update: Update fosscord-server-util to latest and fix issues with NULL and undefined 2021-05-23 12:44:02 -05:00
Diego Magdaleno
ff7985ad7d Config: Final config additons, now everything should work as desired 2021-05-22 18:51:46 -05:00
Diego Magdaleno
e4a4759e97 Fix merge issues, update to reflect config changes and package.json 2021-05-22 15:55:45 -05:00
Diego Magdaleno
e3f6a29df7 Config: First rewrite of config and working implementation of getting values 2021-05-19 20:39:31 -05:00
Intevel ツ
0dca4700fb @fosscord/server-util@1.1.5 2021-05-08 16:47:54 +02:00
Intevel ツ
8918103884 fosscors-server-util@1.1.4 2021-05-08 14:57:49 +02:00
Intevel ツ
7e27fbf721 fosscord-server-util@1.1.3 2021-05-08 14:36:15 +02:00
Intevel ツ
49027abd0b serverutil version 2021-05-08 13:03:59 +02:00
Flam3rboy
fb0a9df66c ⬆️ update lambert-server dependencies 2021-05-07 20:07:27 +02:00
Intevel ツ
df4d400ba6 Update package.json 2021-05-06 22:56:07 +02:00
Intevel ツ
abb1fee752 Update package.json 2021-05-05 21:28:36 +02:00
Intevel ツ
79a38a06d6 Revert "Updated fosscord-server-util"
This reverts commit 86aa67a258.
2021-05-05 21:27:30 +02:00
Intevel ツ
86aa67a258 Updated fosscord-server-util
New version of fosscord server util added
2021-05-05 21:27:14 +02:00
Intevel ツ
8ca3a050a0 Updated Fosscord Server util 2021-05-05 15:45:02 +02:00
Flam3rboy
babb5364a5 🐛 fix test client 2021-05-05 15:05:23 +02:00
Flam3rboy
0eb6c994ae 🎨 refactor to use easier permission api 2021-04-27 07:04:01 +02:00
Flam3rboy
0787a88946 ⬆️ update lambert-server 2021-04-26 21:49:52 +02:00
Flam3rboy
a328a2b01b 🐛 fix dev script 2021-04-25 23:40:32 +02:00
Flam3rboy
c2d696d66e added dev server 2021-04-25 23:35:19 +02:00
Flam3rboy
5dd97905ab 🎨 formatting files 2021-04-25 19:46:57 +02:00
Flam3rboy
d8f22c6819 🐛 add patch-package postinstall 2021-04-23 22:39:31 +02:00
Flam3rboy
c6e1511ae4 🐛 fix package 2021-04-23 22:24:52 +02:00
Flam3rboy
3e6d1103bc 🎨 clean up permission checks to use .hasThrow() 2021-04-23 00:15:38 +02:00
Flam3rboy
b40d6b825b npm i @fosscord/server-util 2021-04-22 23:37:07 +02:00
Flam3rboy
4b914bcd32 🎨 rename to -> @fosscord/server-util 2021-04-22 23:30:53 +02:00
Flam3rboy
4528a96ded prepare npm publish 2021-04-22 23:29:06 +02:00
Flam3rboy
763afac56e remove lambert-db 2021-04-18 14:23:42 +02:00
Flam3rboy
c601c328db add npm i fosscord-server-util to postinstall 2021-04-09 14:00:17 +02:00
Flam3rboy
fd0d0fd36f ⬆️ update mnjsf 2021-04-07 20:26:00 +02:00
Flam3rboy
7100559728 🎨 add util build script 2021-04-06 23:23:20 +02:00
Flam3rboy
f1a52912bd 🐛 fix message 2021-04-06 20:51:26 +02:00
Flam3rboy
2682550586 Update Readme 2021-04-06 19:46:17 +02:00
Flam3rboy
cf70e8cff6 setup jest environment 2021-03-30 15:39:00 +02:00
Flam3rboy
0baef5015a 🐛 remove relative @paths 2021-03-27 21:52:02 +01:00
Flam3rboy
6a1e0594dc rename req.userid -> req.user_id 2021-03-08 18:40:37 +01:00