Commit Graph

62 Commits

Author SHA1 Message Date
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
TriForMine 602a74591e refactor: resolve promises (#515)
* Adding missing await and updating some deps

* Adding missing await and updating some deps

* Adding missing await and updating some deps

* Fix close code 4009 until deno fixes the issue: https://github.com/denoland/deno/pull/8776

* Fix heartbeating

* Add await for the requestGuildMembers in requestAllMembers

* Change body && body.file to body?.file

* Fix lint #1

* Change body && body.file to body?.file

* Fix lint

* Deno lint

* Update request.ts

* Fix deno lint error

* Update src/ws/shard_manager.ts

Co-authored-by: ayntee <ayyantee@gmail.com>

* Fix fetchMembers

* Fix getMembersByQuery

* Try to fix RequestMembersQueue processing

* Deno lint

* Fix requestGuildMembers

* Fix requestGuildMembers

* Fix requestAllMembers

* Undo useless changes

* Fix merge conflict

* Fix merge conflict

* Change for loop to Promise.all

* Deno fmt

Co-authored-by: ayntee <ayyantee@gmail.com>
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2021-02-15 11:19:45 +04:00
ayntee 7d3aeac9a0 chore: update dependencies (#519) 2021-02-13 13:03:13 +04:00
ayntee 1231809f89 Add ? 2021-02-02 10:03:05 +04:00
ayntee dfcb406c66 feat(rest/request_manager): support multiple attachments (#499) 2021-02-01 22:57:21 +04:00
ayntee e1bc686a66 Revert "feat(rest/request_manager): support for multiple attachments (#484)" (#498)
This reverts commit 34ce39697a.
2021-02-01 13:25:47 +04:00
ayntee 8ab42a6b95 chore: update deps (#496) 2021-02-01 12:27:13 +04:00
ayntee 34ce39697a feat(rest/request_manager): support for multiple attachments (#484)
* feat(rest/request_manager): support for multiple attachments

Closes #483

* Use .map() instead of forEach()
2021-01-28 20:27:47 +04:00
Ayyan 417315f89e feat: add rateLimit event (#447)
* fix(controllers): change return value of INTERACTION_CREATE event

* feat: add rateLimit event

Closes https://github.com/discordeno/discordeno/issues/349

* Revert "fix(controllers): change return value of INTERACTION_CREATE event"

This reverts commit 9bc52d2ebf.

* https://open.spotify.com/track/6fxVffaTuwjgEk5h9QyRjy
2021-01-24 23:04:34 +04:00
ayntee b3f9287183 style: format files 2021-01-20 17:02:01 +04:00
Skillz a852624415 remove extra log 2021-01-14 12:47:52 -05:00
Skillz 50f47fece6 test use depth 10 for error 2021-01-14 12:25:52 -05:00
Skillz4Killz cd0347a5e1 feat: standalone rest server (#290)
* feat: standalone rest server

* desc

* fmt

* <3 vlad

* Update src/rest/README.md

Co-authored-by: Ayyan <ayyantee@gmail.com>

* Update src/rest/README.md

Co-authored-by: Ayyan <ayyantee@gmail.com>

* Update README.md

* Update src/rest/deps.ts

Co-authored-by: Ayyan <ayyantee@gmail.com>

* Update src/rest/queue.ts

Co-authored-by: Ayyan <ayyantee@gmail.com>

* chore: ignore no-explicit-any rule

* fix(rest): replace with correct import paths

* deno fmt

* fixes

* fmt

* use user agent cons

* fix typings

* Update src/rest/cache.ts

Co-authored-by: Ayyan <ayyantee@gmail.com>

* Update src/rest/cache.ts

Co-authored-by: Ayyan <ayyantee@gmail.com>

Co-authored-by: Ayyan <ayyantee@gmail.com>
2021-01-09 21:53:14 +04:00