Commit Graph

1558 Commits

Author SHA1 Message Date
Skillz4Killz
7aac53e44c fix: imports from mod.ts are bad 2021-04-04 00:42:02 +00:00
Skillz4Killz
b81bf8d484 chore: deno fmt 2021-04-04 00:34:40 +00:00
Skillz4Killz
e7d9b58c81 fix: import of DiscordGatewayPayload 2021-04-04 00:34:08 +00:00
Skillz4Killz
175e38d0ce fix: broken import 2021-04-03 23:59:51 +00:00
Skillz4Killz
ab4b9c0b83 fix snake case 2021-04-03 23:59:37 +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
ab3ec5703e fix: another missing import 2021-04-03 23:51:55 +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
5ef292cc78 fix(ws/shard): add missing import 2021-04-02 23:22:58 +04: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
ec9ceaab04 fix(rest/process_request): use DiscordHTTPResponseCodes (#731) 2021-04-02 22:08:09 +04:00
ITOH
99c252d2d5 fix(handlers): add missing imports (#724)
* Update GUILD_EMOJIS_UPDATE.ts

* fix imports

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-04-02 17:33:14 +04:00
ayntee
455cc6fb24 fix(handlers/GUILD_MEMBER_ADD): check if guildMember is undefined (#729)
* fix(handlers/GUILD_MEMBER_ADD): check if guildMember is undefined

* Update src/handlers/members/GUILD_MEMBER_UPDATE.ts

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

* Update src/handlers/members/GUILD_MEMBER_UPDATE.ts

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

* Update src/handlers/members/GUILD_MEMBER_UPDATE.ts

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

* Update src/handlers/members/GUILD_MEMBER_UPDATE.ts

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

* Update src/handlers/members/GUILD_MEMBER_UPDATE.ts

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
2021-04-02 17:31:25 +04:00
ITOH
2502585e8b types(channels): fix wrong type for permission_overwrites (#725)
* fix type

* Update src/types/channels/channel.ts

* wrooong
2021-04-01 00:46:36 +04:00
ITOH
dd21008f90 fix(handlers): add missing imports (#723)
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-31 21:51:46 +04:00
ITOH
4489a46c61 fix(types): add missing imports (#722)
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-31 21:50:22 +04:00
ITOH
243644d664 types: finalize and cleanup types (#721)
* some adds

* Update create_guild_role.ts

* oops

* forgot the null

* Update create_guild_role.ts
2021-03-31 21:38:15 +04:00
ITOH
59bd17484b types: add team types (#720)
* add team types

* partial user

* remove partial user thing

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-31 20:51:16 +04:00
ITOH
61c1e060f9 types: add oauth2 types (#719)
* add types

* Update get_current_authorization_information.ts

* Update src/types/oauth2/get_current_authorization_information.ts

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

* Update src/types/oauth2/get_current_authorization_information.ts

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

* Update bot_auth_query.ts

* Update scopes.ts

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-31 19:25:09 +04:00
ITOH
37b8f37b1c types: add guild types (#716)
* add types

* Update src/types/guilds/welcome_screen_channel.ts

* Update src/types/guilds/create_guild_channel_params.ts

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

* many changes

* Update src/types/guilds/create_guild_channel.ts

* Update src/types/guilds/get_guild.ts

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

* Update src/types/guilds/get_guild.ts

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

* Update src/types/guilds/get_guild_prune_count.ts

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

* Update src/types/guilds/get_guild_prune_count.ts

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

* Update get_guild_widget_image.ts

* Update src/types/guilds/get_guild_widget_image.ts

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

* Update src/types/guilds/get_guild_widget_image.ts

* Update src/types/guilds/get_guild_widget_image.ts

* Update src/types/guilds/get_guild_widget_image.ts

* Update src/types/guilds/guild.ts

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

* Update src/types/guilds/list_guild_members.ts

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

* Update src/types/guilds/list_guild_members.ts

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

* Update src/types/guilds/list_guild_members.ts

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

* Update src/types/guilds/modify_current_user_nick.ts

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

* Apply suggestions from code review

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

* idk

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-31 14:39:10 +04:00
ayntee
160a3ab791 ci(deploy): master -> main 2021-03-30 21:31:51 +04:00
ITOH
79be200943 types: add role types (#717)
* move perm types

* types: add role types

* types: add roletags types

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-30 12:10:53 +04:00
ITOH
c2757b2491 types: add code types (#718) 2021-03-30 12:00:08 +04:00
ayntee
9fda12b336 Merge branch 'main' of https://github.com/discordeno/discordeno 2021-03-29 23:58:13 +04:00
ayntee
8de973f650 chore: use DiscordBitwisePermissionFlags and PermissionStrings 2021-03-29 23:57:06 +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
79d57f0377 chore: fix import and exports 2021-03-29 23:47:31 +04:00
ayntee
352a7b9f49 fix: use PermissionStrings 2021-03-29 23:31:52 +04:00
ayntee
a98df7f36d refactor(types): separate files for gateway types (#715) 2021-03-29 23:13:18 +04:00
ITOH
a0ff1a3a71 types: add interactions types (#709)
* types: add Interaction ApplicationCommand type

* types: add Interaction ApplicationCommandInteractionData type

* types: add Interaction ApplicationCommandInteractionData type

* types: add Interaction ApplicationCommandInteractionDataOption

* types: add Interaction ApplicationCommandOption

* types: add Interaction ApplicatoinCommandOptionChoice

* types: add Interaction ApplicationCommandOptionTypes

* types: add Interaction CreateGlobalApplicationCommand

* types: add Interaction CreateGuildApplicationCommand

* types: add Interaction EditGlobalApplicationCommand

* types: add Interaction EditGuildApplicationCommand

* types: add Interaction

* types: add Interaction InteractionResponse

* types: add Interaction InteractionResponseTypes

* types: add Interaction InteractionTypes

* types: add Interaction MessageInteraction

* change names

* my bad

* Update src/types/interactions/application_command_callback_data.ts

* Update src/types/interactions/interaction.ts

* InteractionTypes => DiscordInteractionTypes

* s

* delete this test file

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-29 21:09:25 +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
618d30b65d types: add error types (#713)
* Create errors.ts

* to misc

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-29 21:01: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
ayntee
367a7975f8 chore: export verifySecurity() 2021-03-29 16:50:54 +04:00
ayntee
7a1b2f4425 chore: fix exports 2021-03-29 15:29:21 +04:00
ayntee
33d9b93cb7 chore: export each structure 2021-03-29 13:35:09 +04:00
ayntee
3681d5e6cb chore: separate PermissionStrings 2021-03-29 13:28:32 +04:00
ayntee
2207a1c1ce chore: export bitwise_permission_flags.ts 2021-03-29 13:24:46 +04:00
ayntee
c3a44eb04c types: add DiscordBitwisePermissionFlags 2021-03-29 13:23:26 +04:00
ayntee
7d2ff45b61 types(embeds/embed): change color type to number (#708) 2021-03-29 12:51:07 +04:00
ayntee
795e7d3819 Merge branch 'main' of https://github.com/discordeno/discordeno 2021-03-29 12:32:01 +04:00
ayntee
16864a2666 chore: export types 2021-03-29 12:31:53 +04:00
ITOH
66e58d5c2b types: add template types (#706)
* types: add CreateGuildFromTemplate type

* types: add ModifyGuildTemplate type

* types: add Template type

* types: add VoiceRegion type

* types: add VoiceState type

* Revert "types: add VoiceRegion type"

This reverts commit d1c13d4658.

* Revert "types: add VoiceState type"

This reverts commit 322970dda8.

* Update src/types/templates/modify_guild_template.ts

* Update src/types/templates/template.ts

* Update src/types/templates/template.ts

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-29 12:20:27 +04:00
ayntee
163d090a88 chore(types): fix imports 2021-03-29 12:18:29 +04:00
ITOH
ee0fab8635 types: add emoji types (#705)
* feat(types/emojis): CreateGuildEmoji

* feat(types/emojis): Emoji

* feat(types/emojis): ModifyGuildEmoji

* Update src/types/emojis/create_guild_emoji.ts

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-29 12:05:35 +04:00
ITOH
9f479bd1a5 fix(types/invites): GetInvite counts typo (#704)
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-29 12:01:20 +04:00