42 Commits

Author SHA1 Message Date
Flam3rboy
2bebfa1653 🐛 fix post/patch channel 2021-08-07 21:50:20 +02:00
BuildTools
98a780ad7c added profile banners 2021-08-07 21:58:16 +03:00
Flam3rboy
45e97e894c 🐛 fix GuildUpdate Schema 2021-08-07 19:30:40 +02:00
BuildTools
34db2d65ee added accent_color to UserModifySchema 2021-08-07 11:02:13 +03:00
Flam3rboy
2be07d2f73 empty messages check + allowed mentions 2021-06-23 19:23:41 +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
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
536900d255 🚧 dm channels 2021-05-31 20:32:23 +02:00
Flam3rboy
d61bbe8293 message attachments 2021-05-30 01:44:09 +02:00
Flam3rboy
a86efe97bb 🎨 reformat 2021-05-29 18:22:52 +02:00
Flam3rboy
71c0050a54 Message edit 2021-05-22 22:06:18 +02:00
Flam3rboy
4715ef1eab createChannel() 2021-05-22 17:40:10 +02:00
Flam3rboy
8a13a1f2ea 🎨 Move member routes in separate files 2021-05-22 17:39:28 +02:00
Flam3rboy
8bdee7ea03 🐛 fix channel modify schema 2021-05-10 15:34:06 +02:00
Intevel ツ
f5ea46a79b Update Guild.ts 2021-05-08 14:27:43 +02:00
Intevel ツ
a79fae86bf Update Member.ts 2021-05-08 13:59:11 +02:00
Flam3rboy
78fa2835ab 🎨 [Route] templates refactor 2021-05-07 20:03:24 +02:00
Intevel ツ
4e765c424e [Route] PATCH /guilds/:id/roles 2021-05-06 23:24:39 +02:00
Intevel ツ
63b81db2a2 Create Roles.ts 2021-05-06 23:09:04 +02:00
Intevel ツ
8d077690d6 [Route] PATCH /users/:id 2021-05-06 22:30:47 +02:00
Intevel ツ
be50cc3d35 [Route] PATCH /guilds/:id/templates 2021-05-06 11:22:34 +02:00
Intevel ツ
019633a3de Update Guild.ts 2021-05-05 22:21:14 +02:00
Intevel ツ
83b2d5d605 Update Template.ts 2021-05-05 22:21:10 +02:00
Intevel ツ
7e07997d27 [Route] GET /guilds/:id/templates 2021-05-05 21:40:33 +02:00
Intevel ツ
79a38a06d6 Revert "Updated fosscord-server-util"
This reverts commit 86aa67a258e892dbb1faf68f850a3aaa3177019e.
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 ツ
b8ca880247 [Route] PUT /guilds/:id/members
Not tested
2021-05-04 11:37:00 +02:00
Your Name
aeecd50b77 Channel Delete + Update Route 2021-04-26 03:40:20 +05:30
Flam3rboy
5dd97905ab 🎨 formatting files 2021-04-25 19:46:57 +02:00
Intevel ツ
75461b9f6e POST /users/@me/channels 2021-04-24 10:21:40 +02:00
Intevel ツ
e3815e5c3e lol 2021-04-24 09:38:18 +02:00
Flam3rboy
b40d6b825b npm i @fosscord/server-util 2021-04-22 23:37:07 +02:00
Flam3rboy
6ac4067c39 Merge branch 'master' of https://github.com/discord-open-source/discord-api 2021-04-14 15:01:53 +02:00
Flam3rboy
33d2fe808d 🐛 fix message schema 2021-04-14 15:01:49 +02:00
xnacly
8599b25a37 update invite schema 2021-04-08 17:54:12 +02:00
Flam3rboy
7089287016 🎨 Convert id bigint to string 2021-04-06 18:02:10 +02:00
Flam3rboy
d700e4c8fa 🐛 fix guild schema 2021-04-06 04:05:31 +02:00
Flam3rboy
6a1e0594dc rename req.userid -> req.user_id 2021-03-08 18:40:37 +01:00
Flam3rboy
56c9e43777 Schema 2021-03-04 22:01:45 +01:00
xnacly
0b5176c702 Invite scheme 2021-02-21 19:21:11 +01:00
Intevel ツ
5d1c5f40d2 Created Ban Routes
Ban members works now
2021-02-21 13:44:58 +01:00
Flam3rboy
d3427b42ea move Schema from util to api 2021-02-10 22:03:40 +01:00