Commit Graph

1784 Commits

Author SHA1 Message Date
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
ITOH d000a6e02c Merge remote-tracking branch 'upstream/main' into main 2021-03-29 17:41:21 +02: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
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
ITOH a4de41cc7c feat(types/guilds): add Guild 2021-03-28 14:54:34 +02:00
ITOH c6766131c2 Merge remote-tracking branch 'upstream/main' into main 2021-03-28 14:39:29 +02: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
ITOH d5fb3f7d52 docs(README): master -> main (#694) 2021-03-28 15:21:33 +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
ayntee e21e93ea78 types: add channel types (#691) 2021-03-28 14:10:33 +04:00
ITOH 9b49f958ee types: add audit log types (#690)
* feat(types/audit_log): AuditLogChange

* feat(types/audit_log): AuditLogChangeValue

* feat(types/audit_log): AuditLogEntry

* feat(types/audit_log): AuditLogEvent

* feat(types/audit_log): AuditLogPayload

* feat(types/audit_log): GetGuildAuditLog

* feat(types/audit_log): OptionalAuditEntryInfo
2021-03-28 14:08:04 +04:00
ITOH c2be5da373 types(util): recursive CamelCaseProps and SnakeCaseProps (#689)
* Update util.ts

* better names

* add the old one back
2021-03-28 13:46:06 +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 2806dc3d04 Merge branch 'main' of https://github.com/discordeno/discordeno 2021-03-27 13:02:05 +04:00
ayntee 72b07574f2 types: add gateway types 2021-03-27 12:37:11 +04:00
ayntee dc497b74af docs(README): remove table of contents 2021-03-27 12:05:41 +04:00
ayntee b1512e0334 types: add gateway events types 2021-03-27 12:03:55 +04:00
ayntee 68c0aa4877 types(gateway): make since nullable 2021-03-27 11:24:47 +04:00