Commit Graph

41 Commits

Author SHA1 Message Date
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
Ayyan
e5a8f3b358 chore: setup "deno lint" (#331)
* chore: setup "deno lint"

* ci(lint): add --unstable flat to lint script

* lint

* lint

* refactor: destructure assignment for Message#guildID

* chore: remove TODO comment

* refactor: remove redundant async

* chore: switch to Deno stable vscode ext

* chore: remove ignore comments

* chore: remove ignore comments

* chore: remove @ts-ignore comment

* fixes

* fixes

* chore: remove deno-lint-ignore comment

* chore: add index signature
2021-01-03 20:12:42 +04:00
TriForMine
484f86638f refactor: resolve async promises, fixed typos, and used inline variable for return (#299)
* Added await in async function, fixed typos and used inline variable for return

* Added await in async function, fixed typos and used inline variable for return

* Revert "Added await in async function, fixed typos and used inline variable for return"

This reverts commit f31caf5d

* Added await in async function, fixed typos and used inline variable for return

* Fixes format

* Fixes format 2

* Fixes format 4475757

* Fixes format 878757854786312378657865785785785785

* Change return to await

* Fixing more issues

* Fixing even more issues

* Fixing even more issues +

* Fixes format
2020-12-30 12:31:11 +04:00
Skillz
189dc150f2 rename to mod.ts 2020-12-26 19:30:32 -05:00
Skillz4Killz
af156b6b25 Merge pull request #262 from discordeno/getters
feat: implement getters
2020-12-26 18:37:55 -05:00
Skillz4Killz
4f12969cd8 fmt 2020-12-26 23:35:58 +00:00
ayntee
d83a049a93 idk 2020-12-26 20:30:31 +04:00
ayntee
64884439db refactor(rest): move user agent to constants 2020-12-26 19:36:08 +04:00
ayntee
8e3fab7411 fix: remove util/cdn export 2020-12-24 17:59:15 +04:00
ayntee
fe43cc8f88 Some updates―renaming interfaces and files 2020-12-23 18:12:12 +04:00
ayntee
321175a72f Revert "chore: verbose imports"
This reverts commit dfe6f371d3.
2020-12-23 11:03:06 +04:00
ayntee
dfe6f371d3 chore: verbose imports 2020-12-22 22:59:09 +04:00
Ayyan
e49a23687e refactor!: organize directories and files (#268)
* refactor!: organize directory structure

* fix: avoid stack overflow err

* chore: swtch back to std/encoding for base64

* style: format source files
2020-12-22 21:26:27 +04:00