336 Commits

Author SHA1 Message Date
Flam3rboy
02d88fc41e
Merge pull request #186 from BanTheNons/profile-route
Added the profile routes
2021-08-07 10:28:36 +02:00
BuildTools
46bcebcc92 fixed a typo 2021-08-07 11:20:20 +03:00
BuildTools
34db2d65ee added accent_color to UserModifySchema 2021-08-07 11:02:13 +03:00
BuildTools
8833c6b400 bug fix 2021-08-06 15:42:59 +03:00
BuildTools
974a6ccbd5 Added accent_color 2021-08-06 15:25:42 +03:00
BuildTools
1727c62317 Added the bot param 2021-08-05 21:00:56 +03:00
BuildTools
f93e348841 Added the profile route 2021-08-05 19:18:14 +03:00
Flam3rboy
43a38ba46c Merge branch 'master' of https://github.com/fosscord/fosscord-api 2021-08-05 13:44:52 +02:00
Flam3rboy
cce776e2e9 ⬆️ update demo test client 2021-08-05 13:44:50 +02:00
Paul Munteanu
64220d51f9
[Channel] Implement type 4 channel and clean the code 2021-08-01 21:01:56 +03:00
Flam3rboy
aee1eb2949 🚧 message acknowledge 2021-07-30 17:37:16 +02:00
Paul Munteanu
1b6358a151
Use config default region for new Guilds 2021-07-26 02:19:45 +03:00
Paul Munteanu
16ef891781
Implement guilds/#guild_id/regions route 2021-07-26 02:19:10 +03:00
Flam3rboy
707e94614b
Merge pull request #174 from DankDumpster/72-char
Make password limit 72 to match discord's limit
2021-07-22 18:22:12 +02:00
Flam3rboy
f7e3809d7e 🐛 fix 404 error return json instead of client 2021-07-22 14:04:24 +02:00
Matthew
ec9671a429
Update register.ts 2021-07-22 01:35:24 +00:00
Matthew
c687d9074f
Make password limit 72 to match discord's limit 2021-07-22 01:33:58 +00:00
Diego Magdaleno
adf1f7cce6
[Remove] Remove the console.log 2021-07-21 15:04:41 -05:00
Diego Magdaleno
3ae50def52
Merge branch 'fosscord:master' into master 2021-07-21 14:47:30 -05:00
Diego Magdaleno
a95d7b7ce5 [Fix] All messages should have edited_timestamp even if null 2021-07-21 14:47:07 -05:00
Flam3rboy
c05e17e4d4 🐛 fix login route 2021-07-19 22:46:06 +02:00
Flam3rboy
247a213eea 🐛 fix gateway route 2021-07-19 22:45:58 +02:00
Diego Magdaleno
7dab8f9435 [Gateway Endpoint] Encode response as JSON 2021-07-19 13:17:33 -05:00
Flam3rboy
11ded12204 🔊 fix log 2021-07-18 19:49:10 +02:00
Flam3rboy
2f68beea8f delete rethink 2021-07-11 11:05:40 +02:00
Flam3rboy
c22fe86c46 bundle exectuable 2021-07-10 19:01:53 +02:00
Flam3rboy
cce9358d85 use fs sync for backwards compatibility 2021-07-10 18:46:41 +02:00
Flam3rboy
f5b301a161 findOne auto throws error if it doesn't exist' 2021-07-10 18:05:11 +02:00
Flam3rboy
c3c8026041 route specific rate limits 2021-07-01 21:27:46 +02:00
Flam3rboy
79e1adc5ce finished Rate Limit 2021-07-01 11:16:13 +02:00
Flam3rboy
efc522a0c6 🚧 rate limit 2021-07-01 09:33:54 +02:00
Flam3rboy
14a31ad143 🚧 rate limit 2021-06-28 18:43:50 +02:00
Flam3rboy
e542df3377 🐛 fix ip address lookup 2021-06-27 23:51:30 +02:00
Flam3rboy
3f7e8296d0 v9 2021-06-27 23:30:36 +02:00
Flam3rboy
cc9c666c0f 🐛 fix import 2021-06-27 23:28:25 +02:00
Flam3rboy
47d30153f4 ⬆️ update dev client version 2021-06-27 23:26:49 +02:00
Flam3rboy
ea676ddd03 🔒 register proxy ip check 2021-06-27 23:14:13 +02:00
Flam3rboy
624a4d5694 🐛 fix empty message bug for attachments 2021-06-26 22:45:01 +02:00
Flam3rboy
9b59296af5 🐛 fix CORS 2021-06-26 19:48:20 +02:00
Joaquim Peixoto
ef19ecedb7 CORS FIX 2021-06-25 14:54:13 +01:00
Flam3rboy
2be07d2f73 empty messages check + allowed mentions 2021-06-23 19:23:41 +02:00
Flam3rboy
295fbabf0d 🎨 move widget templates to assets 2021-06-22 20:58:17 +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
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
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
0feb3b635a Friends Relationships 2021-05-30 22:12:29 +02:00