Commit Graph

124 Commits

Author SHA1 Message Date
ITOH 009f6a88dc wrong header 2021-04-11 15:13:25 +02:00
ITOH 085067591d Update process_request_headers.ts 2021-04-11 11:15:48 +02:00
Skillz4Killz b7321a6d0e fix(rest): URL limiting (#809)
* fix: shtuff

* fix: better url handling
2021-04-10 18:26:41 +01:00
ITOH dc9c33f0d4 f 2021-04-09 22:22:06 +02:00
ITOH 9312606100 lop 2021-04-09 21:37:13 +02:00
Skillz4Killz a6536519ab git commit broke 2021-04-09 17:39:53 +00:00
Skillz4Killz 9c53a67dd3 fix: rest method uppercase 2021-04-09 14:41:31 +00:00
Skillz4Killz 03d01463e1 deno fmt 2021-04-09 14:41:23 +00:00
Skillz4Killz f3c5d94df8 handle rejection 2021-04-09 13:12:07 +00:00
Skillz4Killz cddf40e299 callback is useless 2021-04-09 13:11:12 +00:00
Skillz4Killz b4d7eaf247 use rest token prop 2021-04-09 13:07:45 +00:00
Skillz4Killz 17f76b0b20 add token to rest 2021-04-09 13:07:24 +00:00
Skillz4Killz e7382fffaa deno fmt 2021-04-08 21:21:39 +00:00
Skillz4Killz 417ec0400d tests are succeeding 2021-04-08 21:18:01 +00:00
Skillz4Killz ad87124bca more stuff 2021-04-08 19:26:38 +00:00
Skillz4Killz 2babaf5991 deno fmt 2021-04-08 14:35:33 +00:00
Skillz4Killz 3a180219d6 Merge branch 'main' of https://github.com/discordeno/discordeno into fix-rest-issues 2021-04-08 14:14:49 +00:00
Skillz4Killz 3576d98510 fix: rest errors preventing startup 2021-04-08 14:14:30 +00:00
ITOH f31416c432 Update run_method.ts 2021-04-07 10:49:45 +02:00
ITOH 12cd0f7430 Update src/rest/run_method.ts
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-04-07 10:46:14 +02:00
ITOH e21581a6b9 Update src/rest/run_method.ts
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-04-07 10:46:02 +02:00
ITOH 728570a210 Update src/rest/run_method.ts
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-04-07 10:45:57 +02:00
ITOH 4b1597b2a7 Update src/rest/run_method.ts
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-04-07 10:45:49 +02:00
ITOH 5cbff10e9e add return Type 2021-04-07 10:34:08 +02:00
Skillz4Killz b81bf8d484 chore: deno fmt 2021-04-04 00:34:40 +00:00
Skillz4Killz 65bc080da1 fix: some rest run method fixes 2021-04-03 23:52:45 +00:00
Skillz4Killz 7dc2ddb1f7 fix: missing debug event necessary 2021-04-03 23:52:17 +00:00
Skillz4Killz 408120c508 fix: bunch of imports that were missing 2021-04-03 23:30:48 +00:00
TriForMine cc46698245 fix(rest): remove export for request_manager.ts (#733) 2021-04-03 15:33:49 +04:00
ayntee 5f1b82a4e8 refactor: remove RequestManager and use runMethod() (#732)
* fix(rest/process_request): use DiscordHTTPResponseCodes

* refactor: remove RequestManager

* refactor: remove RequestManager and use runMethod()
2021-04-02 23:18:51 +04:00
ayntee ec9ceaab04 fix(rest/process_request): use DiscordHTTPResponseCodes (#731) 2021-04-02 22:08:09 +04:00
Skillz4Killz ebb15afa0e refactor(rest): separate functions into diff files (#685)
* shtufffff

* fixe rate limit path infinite loop

* refactor

* ID > id

* Update process_request_headers.ts

* file names

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-29 23:50:08 +04:00
ayntee eaff54f90f refactor: rename *ID to *Id (#710)
* refactor: rename *ID to *Id

* Update src/helpers/commands/delete_slash_command.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/delete_slash_command.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/delete_slash_response.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/edit_slash_response.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/get_slash_command.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/send_interaction_response.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/upsert_slash_command.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/edit_widget.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/get_widget.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/get_widget.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/get_widget_image_url.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/get_widget_image_url.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/guilds/get_widget_settings.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update .gitignore

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update LICENSE

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/members/edit_bot_profile.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/members/edit_bot_profile.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/webhooks/create_webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/webhooks/delete_webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/webhooks/edit_webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/webhooks/execute_webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/webhooks/get_webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/rest/cache.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/rest/request.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/helpers/commands/delete_slash_response.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/constants.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/util/utils.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Revert docs file

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
2021-03-29 21:03:46 +04:00
ITOH c91c9d0870 types: remove entire types (#684) 2021-03-23 19:14:26 +04:00
ayntee ba2363618e deps: update to latest (#656) 2021-03-11 17:46:06 +04:00
ayntee bd14075c8a fix(types/channel): change FileContent.blob type to Blob (#509)
* fix(types/channel): change FileContent.blob type to Blob

* idk

* change to blob

* idk
2021-03-08 18:12:35 +04:00
ITOH e10b835367 feat(rest/server): support TLS protocol (#562)
* add keys option

* add serveTLS

* Update src/rest/types/server.ts

* Update src/rest/types/server.ts

* rename the keys

* forgot that one

* Update src/rest/types/server.ts

* some renaming

* Update src/rest/types/server.ts

* Update src/rest/server.ts

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-06 11:48:29 +04:00
ayntee 7b482aeed1 fix(rest/queue): logical error in response status handling (#549) 2021-02-26 21:18:10 +04:00
ITOH 369c3d0ce2 fix(rest): proxy 204 response remove from queue (#545)
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-02-25 22:52:25 +04:00
ITOH 53c22b20f7 Update requests.ts 2021-02-25 18:37:57 +01:00
ITOH b55193a51c Update server.ts 2021-02-25 18:37:53 +01:00
ITOH 95d24d941a Update queue.ts 2021-02-25 18:37:49 +01:00
ITOH 5756e137a5 Update request_manager.ts 2021-02-25 18:37:23 +01:00
ITOH 2fcdbe5822 Update request.ts 2021-02-25 18:37:18 +01:00
Skillz 4f8d5a4b65 reducing complexity 2021-02-22 14:31:03 -05:00
Skillz 98690a037e reduce complexity 2021-02-22 14:30:46 -05:00
Skillz 17f5222c65 remove log 2021-02-22 12:02:29 -05:00
Skillz 6eca60777c itoh is love itoh is bae this is his stuff 2021-02-22 12:01:32 -05:00
Skillz4Killz c81d28acfe fix(rest/request_manager): embed URL in the request body (#536)
* fix big brain bot auth on proxy rest

* whoops

* fix header

* fix url and method in body
2021-02-21 21:19:15 +04:00
Skillz4Killz d83665d8ff fix(rest/request_manager): pass authorization header instead (#534)
* fix big brain bot auth on proxy rest

* whoops

* fix header
2021-02-21 21:05:46 +04:00