Skillz4Killz
1b8161e85b
refactor: cleanup and fmt
2021-04-04 12:54:33 +00:00
Skillz4Killz
181bdffb41
Merge branch 'main' of https://github.com/discordeno/discordeno into proxy-ws
2021-04-04 12:28:39 +00:00
Skillz4Killz
175e38d0ce
fix: broken import
2021-04-03 23:59:51 +00:00
ayntee
8de973f650
chore: use DiscordBitwisePermissionFlags and PermissionStrings
2021-03-29 23:57:06 +04:00
ayntee
79d57f0377
chore: fix import and exports
2021-03-29 23:47:31 +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
ayntee
fa2a0307fa
types: remove EventHandlers and RateLimitData
2021-03-27 17:04:25 +04:00
ayntee
d2cb96ac86
types: add RateLimitData interface
2021-03-27 16:59:19 +04:00
ayntee
7a04f99fd3
types(gateway): make large_threshold optional
2021-03-27 11:19:52 +04:00
ayntee
431d180957
types: add gateway types ( #687 )
2021-03-26 20:09:24 +04:00
ITOH
c91c9d0870
types: remove entire types ( #684 )
2021-03-23 19:14:26 +04:00
ayntee
e9cbbbff7c
refactor(helpers): separate functions into files ( #667 )
...
* refactor(helpers): separate functions into files
* idk
* idk
2021-03-13 08:10:31 -05:00
ayntee
8654aeded5
refactor: rename controllers to handlers and handlers to helpers ( #660 )
...
* refactor: rename controllers to handlers and handlers to helpers
* fmt
2021-03-11 21:41:03 +04:00
ITOH
372dc9988b
fix(controllers/READY): reimplement guild cache mechanism ( #647 )
...
* add lastShardID
* fix ready event controller
* forgot to push this file
* move ready to its own file
* some changes
* Update READY.ts
* some changes idk if they are good
* Update options.ts
* Update READY.ts
* Update guilds.ts
2021-03-11 18:09:59 +04:00
Skillz
94bc5be370
let end user do server
2021-02-25 16:58:10 -05:00
Skillz
cc6a93c180
bug fixes for proxy ws
2021-02-25 15:29:34 -05: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
ayntee
62a91ba013
Update src/bot.ts
2021-02-21 21:03:02 +04:00
ayntee
c1914abe30
Update src/bot.ts
2021-02-21 21:02:17 +04:00
ayntee
32df4f9e13
Update src/bot.ts
2021-02-21 21:01:51 +04:00
ayntee
b0fcb3f2f5
Update src/bot.ts
2021-02-21 21:01:26 +04:00
ayntee
7c404e80f6
refactor: use updated identify payload instead
2021-02-20 23:46:37 +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
ITOH
db64efcba7
fix(bot): fix skipChecks logic ( #508 )
2021-02-06 18:18:55 +04:00
ITOH
c281665961
fix: use applicationID for slash commands instead of botID ( #437 )
...
* add(bot): ApplicationID let & setApplicationID function
* fix(controllers): set application id when bot is ready
* refactor(util): rename botID argument to applicationID
* fix(handlers): use applicationID
2021-01-23 23:19:12 +04:00
ITOH
8beb036741
feat(handlers): add getGatewayBot() & getApplicationInformation() ( #428 )
...
* feat(handlers): add getGatewayBot()
* refactor(bot): use getGatewayBot() to get gateway data
* feat(handlers): add getApplicationInformation
* add(handlers): getApplicationInformation jsdoc
* Add oauth required types
* create separate file
* delete misc
* OAuthApplication
* forgot to update import
* idk why that was here
2021-01-23 14:51:35 +04:00
ITOH
e56d67a138
feat: internal intents resolution ( #390 )
...
* better intents typing
* Update README.md
* Update mod.test.ts
* support enum too
2021-01-19 12:18:13 +04: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
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
185db61887
add member.mention and member.avatarURL
2020-12-27 10:54:20 -05:00
Skillz
65d3789742
fix: nonce bug not resolving requests
2020-12-27 09:47:00 -05:00
Skillz
189dc150f2
rename to mod.ts
2020-12-26 19:30:32 -05:00
ayntee
2c697a4d2d
refactor: add gateway version to constants
2020-12-26 20:01:41 +04:00
ayntee
fe43cc8f88
Some updates―renaming interfaces and files
2020-12-23 18:12:12 +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