Commit Graph
25 Commits
Author SHA1 Message Date
Madeline e42c706e0a Skip check for rate limit bypass if no user id is provided 2022-07-02 12:05:45 +03:00
Madeline 01f5850b37 Merge pull request #776 from MaddyUnderStars/fix/member_id
Fix compile errors in latest
2022-06-26 23:35:31 +10:00
Madeline 446ff62bfe Fix compile errors in latest 2022-06-26 23:33:51 +10:00
Madeline 7a991f3f3c Expose general instance information via api /ping route 2022-06-08 16:58:27 +10:00
Madeline f420cfd36c Respect register_dateOfBirth_required = false 2022-05-30 23:29:35 +10:00
Madeline 2e84840213 While backfilling, message ids must now be valid snowflakes, cannot be in the future, and cannot overwrite existing messages 2022-04-24 16:09:38 +10:00
Madeline 6e0040a8ca Fix not assigning new changes to input fields in users/@me 2022-04-23 01:48:41 +10:00
Madeline 2846e970b4 Can no longer send messages to channel types that do not support it ( categories, voice etc ) 2022-04-23 01:28:03 +10:00
Madeline 7e7a2d3619 Fixed ability for user to edit any property of themselves, including rights, flags. Note to self: schemas.json is a GENERATED file. npm run generate:schema in api/ 2022-04-23 01:07:59 +10:00
Madeline 12aed1db1f Fix compile errors in checkPassword's entropy check 2022-04-10 17:39:23 +03:00
Madeline 9f2e9d5faf Resolves #715 2022-04-09 17:03:31 +03:00
Madeline ecf59d30c5 User Notes (#707)
* Notes implementation.
Bug: Client does not save note locally after uploading to server. Client does save after reloading page. Is this due to the response being sent by PUT?

* I don't know why the client doesn't do optimistic UI updates with this, or any updates at all without reloading the page

* Added USER_NOTE_UPDATE event, thanks @TheRealGeoDash2019 !
2022-04-05 12:58:34 +03:00
Madeline 54ffd87e8e Fix typo in table 'client_relase' -> 'client_release' ( and other of the same typo ) (#703)
* Fixed typo in table name 'client_relase' -> 'client_release'. Fixed more typos of the same typo.

* Fixed migration ( but dirty lol )
2022-03-30 17:21:40 +03:00
Madeline 4059a00044 Changing Member.premium_since back from Date to number fixes an error in the Discord electron client related to rendering premium status. (#669)
Client throws "Invalid time value", so I'm guessing it's something to do with premium_since not being the date format they want ( allegedly ISO8601, but works with a plain number, so wtf )
2022-03-08 18:10:23 +03:00
Madeline 4ede702657 Fixed npm run tsnode throwing error about ES modules for node-fetch. Probably was api package.json still included node-fetch 3, but bundle still had v2 2022-03-06 10:52:19 +03:00
MadelineandErkin Alp Güney 68f6fe58d5 Tsnode support (#580)
* ts-node support. debugging is slightly wonky as vscode will not allow breakpoints in modules that aren't bundle, yet.

* apparently ts-node compilerOptions.path wasn't needed? on windows I could've sworn it was.

* Cleaned up tsconfig.json a bit ( moved tsnode config to own file ).
Fixed breakpoints for all modules under tsnode

* Removed Microsoft Corp advert
* Remove one more Microsoft Corp. ad

Signed-off-by: Erkin Alp Güney <erkinalp9035@gmail.com>

* Added `tsnode` npm script

* Added `typescript-cached-transpile` package to help improve performance

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2022-03-06 09:18:35 +03:00
Madeline b512fa49b0 Remove nulled properties from GET /channels/#id/messages for improved compatibility with some client ( discord.js ) 2022-02-04 19:59:13 +11:00
Madeline 108829140a revert dependabot PRs that update node-fetch to v3 2022-01-24 17:06:31 +11:00
Madeline f8f236afb2 * Replaced list of invisible characters with unicode codepoints
* No longer silently edit invalid channel names
* No longer trim channel names in unnamed check
2022-01-23 23:29:14 +03:00
Madeline 0a53860645 channel.owner_id is type string not number 2022-01-23 23:29:14 +03:00
Madeline d6f5a08cb5 Add unhandled channel types to IsTextChannel method 2022-01-23 23:29:14 +03:00
MadelineandErkin Alp Güney 028fd7b8b3 Apply suggestions from code review
Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2022-01-23 23:29:14 +03:00
Madeline 35c7489f72 Added ILLEGAL_CHANNEL_NAMES and NULL_CHANNEL_NAMES guild feature flags 2022-01-23 23:29:14 +03:00
Madeline 41fca13db2 Fix typo in commit 277b28c 2022-01-13 10:49:26 +03:00
MadelineandErkin Alp Güney e275d2c77d Message fixes | Character limits and embed fixes (#581)
* Adds message character limits (#503)
* Fixed message `embeds` being ignored for `embed`
* Update Message.ts

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
2022-01-11 17:27:55 +03:00