Commit Graph

644 Commits

Author SHA1 Message Date
ITOH
d2ae1638ac typo 2021-04-03 21:41:53 +02:00
ITOH
54b62193bb mooooo 2021-04-03 21:32:27 +02: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
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
3681d5e6cb chore: separate PermissionStrings 2021-03-29 13:28:32 +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
ITOH
a1e484f5e3 types: add voice types (#707)
* types: add VoiceRegion type

* types: add VoiceState type

* Update src/types/voices/voice_region.ts

* Update src/types/voices/voice_region.ts

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-29 11:56:52 +04:00
ayntee
855c7f46fc types: add invite types (#703) 2021-03-28 22:17:00 +04:00
ITOH
8f6314db21 types: add webhooks types (#701)
* feat(types/webhooks): CreateWebhook

* feat(types/webhooks): EditWebhookMessage

* feat(types/webhooks): ExecuteWebhook

* feat(types/webhooks): ModifyWebhook

* feat(types/webhooks): Webhook

* feat(types/webhooks): WebhookTypes

* redundant

* Update src/types/webhooks/create_webhook.ts

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

* Update src/types/webhooks/modify_webhook.ts

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

* Update src/types/webhooks/webhook_types.ts

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

* idk

* typoooo

* Update src/types/webhooks/execute_webhook.ts

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

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-28 21:51:50 +04:00
ayntee
3f40aeb75f types: add user types (#700)
* types: add user types

* Add CreateGroupDM
2021-03-28 20:26:07 +04:00
ITOH
89e4b1eacd fix(util/utils): fix logic error in validateSlashOptions() (#699) 2021-03-28 20:22:42 +04:00
ayntee
4eb59f8511 types(channels): add ModifyChannel and CreateMessage (#697) 2021-03-28 16:02:31 +04:00
ayntee
b86638759a types(audit_log): fix audit log types 2021-03-28 15:54:32 +04:00
ITOH
b4ce7f55b1 types(audit_log): fix AuditLog typos (#696) 2021-03-28 15:33:58 +04:00
ayntee
402a279c59 types: segregate into separate files (#693)
* types: separate channel types into different files

* types: segregate into separate files
2021-03-28 14:48:46 +04:00
ayntee
3017ee604f types: separate channel types into different files (#692) 2021-03-28 14:30:02 +04:00