Commit Graph

103 Commits

Author SHA1 Message Date
Skillz4Killz
b6b3d31c55 export all utils 2021-05-03 17:39:54 +00:00
Skillz4Killz
3d39b3878a change: ids to use bigint instead of string (#892)
* p1 of bigints change

* shtuff fixes and bits

* Commit from GitHub Actions (Lint)

* finish bigint structs

* typings fixes

* Commit from GitHub Actions (Lint)

* more fixes

* Commit from GitHub Actions (Lint)

* more fixes

* Commit from GitHub Actions (Lint)

* blame wolf

* Commit from GitHub Actions (Lint)

* foxed

* Commit from GitHub Actions (Lint)

* fix unit tests

* Commit from GitHub Actions (Lint)

* change: guildUpdate guild ID can't change

* delete server has been renamed to delete guild

* fixes

Co-authored-by: Skillz4Killz <Skillz4Killz@users.noreply.github.com>
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
2021-05-03 18:05:18 +01:00
ITOH
a7de104b9a calculatePermissions should take a string 2021-04-30 15:13:58 +02:00
ITOH
5b314d0b9e typos 2021-04-30 15:13:46 +02:00
ITOH
32cb0dfdcc Update constants.ts 2021-04-28 22:05:53 +02:00
ITOH
f2ae9db4a4 add application command permissions endpoint 2021-04-22 21:34:28 +02:00
ITOH
455c0ad96d Update constants.ts 2021-04-20 17:01:44 +02:00
ITOH
6a618c9f63 Merge branch 'main' into search-members 2021-04-16 18:52:01 +02:00
ITOH
ac65134db9 add(constants): GUILD_MEMBERS_SEARCH 2021-04-16 15:58:27 +02:00
ITOH
02e1495988 add: GUILD_WELCOME_SCREEN endpoint 2021-04-14 09:53:24 +02:00
ayntee
a854219b81 feat: add support for stage channels (#728)
* feat: add support for stage channels

* idk

* Add helpers for voice state

* Rename updateUserVoiceState() to updateVoiceState()

* Update src/types/channels/channel_types.ts

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

* Update src/helpers/guilds/update_user_voice_state.ts

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

* Update src/helpers/guilds/update_bot_voice_state.ts

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

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
2021-04-14 11:11:22 +04:00
ITOH
f31216d0a4 add DISCORDENO_VERSION 2021-04-13 21:59:13 +02:00
Skillz4Killz
b610d06c5f 2021-04-13 16:46:32 +00:00
Skillz4Killz
d746622681 feat: add validateLength util 2021-04-13 16:45:39 +00:00
ITOH
6a5307aaab rename isObject to isConvertableObject and fix blob convertion 2021-04-13 11:43:24 +02:00
ITOH
ece0e29ec8 add any ignore comment 2021-04-13 10:47:32 +02:00
ayntee
1cbc1b8f82 fmt files damn son 2021-04-12 23:13:37 +04:00
ayntee
e16d7a09e8 Moar 2021-04-12 23:12:26 +04:00
ayntee
64824272aa moar 2021-04-12 22:55:39 +04:00
Skillz4Killz
af3dbf1564 refactor: move edit_bot_status to another file in helpers (#838) 2021-04-12 19:17:55 +04:00
Skillz4Killz
51e27d8f17 types: fix new types issues (#829)
* feat: add tests for deleting channel overwrites

* fix: typings
2021-04-12 07:26:55 +01:00
ITOH
dc9c33f0d4 f 2021-04-09 22:22:06 +02:00
ITOH
e00bb82ed2 Merge remote-tracking branch 'upstream/main' into main 2021-04-09 21:42:52 +02:00
ITOH
7ee485107c Update utils.ts 2021-04-09 21:42:14 +02:00
ITOH
9312606100 lop 2021-04-09 21:37:13 +02:00
Skillz4Killz
03631e3c6e refactor: base complete for unit tests 2021-04-09 12:46:38 +00:00
Skillz4Killz
e7382fffaa deno fmt 2021-04-08 21:21:39 +00:00
Skillz4Killz
ad87124bca more stuff 2021-04-08 19:26:38 +00:00
Skillz4Killz
3eaf1a5dcc fix: broken import errors (#779)
* fix: broken import errors

* fix: snake case name
2021-04-08 22:22:11 +04:00
Skillz4Killz
7400d6985f Merge pull request #771 from itohatweb/fix-idk
fix: missing type imports
2021-04-08 09:52:41 -04:00
Skillz4Killz
1fdf377daf Merge pull request #753 from itohatweb/perm-check-only-if-cached
fix(util/permissions): only check for permission if channel is cached
2021-04-08 09:52:23 -04:00
ITOH
313e7d2d35 fir more things 2021-04-07 10:27:44 +02:00
Skillz4Killz
47ed6f5652 fix: remove basicShards and allowNextShard (#755) 2021-04-05 09:37:25 +04:00
ITOH
286aea4631 Merge remote-tracking branch 'upstream/main' into perm-check-only-if-cached 2021-04-04 18:44:38 +02:00
ITOH
2bd0841bb2 that 2021-04-04 17:19:48 +02:00
ITOH
a455b753d7 rere 2021-04-04 17:18:04 +02:00
Skillz4Killz
57540567a5 chore: removes random util (#752) 2021-04-04 18:59:22 +04:00
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
5d3b01b3e7 fix: typings names & imports 2021-04-04 12:21:30 +00:00
Skillz4Killz
7ea1f7adce Merge branch 'main' into message-channel-mentions 2021-04-03 23:39:01 -04:00
Skillz4Killz
210f89ec4e fix: channel mentions includes all valid mentions 2021-04-04 03:23:26 +00:00
Skillz4Killz
b81bf8d484 chore: deno fmt 2021-04-04 00:34:40 +00:00
Skillz4Killz
408120c508 fix: bunch of imports that were missing 2021-04-03 23:30:48 +00:00
ayntee
6aa9b25698 refactor(structures/channel): auto-convert the paylaod fields to camel case (#730) 2021-04-02 23:21:13 +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
8de973f650 chore: use DiscordBitwisePermissionFlags and PermissionStrings 2021-03-29 23:57:06 +04:00
ayntee
b0c3398689 fix(util/utils): remove ID handling from case manipulation functions 2021-03-29 21:07:36 +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
2914874d19 types: add gateway opcodes enum (#711)
* bring opcodes enum back

* Update src/types/gateway/opcodes.ts

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

* DiscordGatewayOpcodes

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-29 20:58:33 +04:00