Commit Graph
100 Commits
Author SHA1 Message Date
ayntee 5ef685811b Update src/helpers/guilds/get_widget.ts 2021-04-30 19:38:23 +04:00
ayntee 6b576c75fe Update src/helpers/guilds/get_widget.ts 2021-04-30 19:37:57 +04:00
ayntee 2c36797dae Update src/helpers/guilds/get_widget.ts 2021-04-30 19:37:13 +04:00
ayntee 379d332492 Complete some TODOs 2021-04-30 16:03:26 +04:00
ayntee 5d9b5d352a Add verifySignature() function 2021-04-19 11:52:38 +04:00
ayntee 59dbc8ed06 Use nacl for signature verification and remove server.ts (included in template) 2021-04-19 11:51:05 +04:00
ayntee b92c94bc2d ci(deploy): use add-and-commit 2021-04-14 18:16:20 +04:00
aynteeandITOH 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
ayntee 702896ef8d ci(test): add @ayntee 2021-04-14 10:07:56 +04:00
ayntee 6f5618abe8 Add @ayntee to CODEOWNERS 2021-04-14 10:01:27 +04:00
ayntee 25bdc36904 ci(deploy): handle no changes error 2021-04-13 10:23:38 +04:00
ayntee 372d708057 Merge branch 'main' of https://github.com/discordeno/discordeno into main 2021-04-13 10:19:45 +04:00
ayntee df9476559f ci(lint): enable "allow empty commit" 2021-04-13 10:12:16 +04:00
ayntee 405f362ec9 ci(deploy): fix syntax error 2021-04-13 10:04:58 +04:00
ayntee 6ef274c036 ci(lint): use github context instead 2021-04-13 10:03:15 +04:00
ayntee 519a02b357 Merge branch 'main' of https://github.com/discordeno/discordeno into main 2021-04-13 10:00:01 +04:00
ayntee 832cc20742 ci(lint): define env explicitly 2021-04-13 09:58:49 +04:00
ayntee 998c71d5a3 Merge branch 'main' of https://github.com/discordeno/discordeno into main 2021-04-12 23:19:47 +04:00
ayntee eb2de7edb4 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. In fermentum et sollicitudin ac orci phasellus egestas tellus. Magna etiam tempor orci eu lobortis. Vulputate odio ut enim blandit volutpat. Quis auctor elit sed vulputate mi sit amet. Nibh ipsum consequat nisl vel pretium. Amet mattis vulputate enim nulla. Nibh praesent tristique magna sit amet purus gravida. Vulputate enim nulla aliquet porttitor lacus luctus. Ut sem viverra aliquet eget sit. Et tortor at risus viverra adipiscing at in tellus. Est ullamcorper eget nulla facilisi. Justo nec ultrices dui sapien eget. Arcu risus quis varius quam quisque id diam vel quam. Morbi enim nunc faucibus a pellentesque. Fringilla ut morbi tincidunt augue interdum velit euismod in pellentesque. Ultrices sagittis orci a scelerisque purus semper eget. Proin sagittis nisl rhoncus mattis rhoncus urna neque viverra. 2021-04-12 23:19:16 +04:00
ayntee 1dba526422 Merge branch 'main' of https://github.com/discordeno/discordeno into main 2021-04-12 23:17:39 +04:00
ayntee a548582941 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 2021-04-12 23:17:32 +04:00
ayntee 0f5cf8be7f Merge branch 'main' of https://github.com/discordeno/discordeno into main 2021-04-12 23:15:41 +04:00
ayntee 7a5d94b678 Damn son, where'd you buying this? 2021-04-12 23:15:34 +04:00
ayntee 1cbc1b8f82 fmt files damn son 2021-04-12 23:13:37 +04:00
ayntee fb42d03944 Merge branch 'main' of https://github.com/discordeno/discordeno into main 2021-04-12 23:12:53 +04:00
ayntee e16d7a09e8 Moar 2021-04-12 23:12:26 +04:00
ayntee 3153487b51 nothin' 2021-04-12 23:01:39 +04:00
ayntee 64824272aa moar 2021-04-12 22:55:39 +04:00
ayntee 7ca9576be7 moar 2021-04-12 22:49:01 +04:00
ayntee a3484c611c moar 2021-04-12 22:37:40 +04:00
ayntee 999217eb3f Moar - rip commit history 2021-04-12 22:37:00 +04:00
ayntee 7a021ac0d6 Merge branch 'main' of https://github.com/discordeno/discordeno into main 2021-04-12 22:29:27 +04:00
ayntee 9d5d0f0872 some moar fixes lol 2021-04-12 22:29:21 +04:00
ayntee 2a33db04fb Merge branch 'main' of https://github.com/discordeno/discordeno into main 2021-04-12 22:24:28 +04:00
ayntee 0b23a308ef Fix some moar 2021-04-12 22:24:20 +04:00
ayntee 2e909102ed Merge branch 'main' of https://github.com/discordeno/discordeno into main 2021-04-12 22:21:33 +04:00
ayntee b21df06719 Fix some types 2021-04-12 22:21:26 +04:00
ayntee 56661e508c Merge branch 'main' of https://github.com/discordeno/discordeno into main 2021-04-12 22:13:28 +04:00
ayntee 736c549c8e fix(handlers/MESSAGE_CREATE): prefix import stmt with .ts 2021-04-12 22:13:11 +04:00
ayntee c4b4d0903c types(handlers/MESSAGE_CREATE): fix typings 2021-04-12 22:12:38 +04:00
ayntee 11d243ad0a ci(lint): "auto-format" the files and push the changes 2021-04-12 19:00:21 +04:00
ayntee ef9aa237bb types(util): add Split (#834) 2021-04-12 15:11:08 +01:00
ayntee e3ec94c72c docs(README): update <img> to use logo from URL (#833) 2021-04-12 10:33:31 +01:00
ayntee 9ef8c095d3 ci(deploy): remove deploy workflow (#832) 2021-04-12 10:30:02 +01:00
ayntee 5159b9abfb Remove PR title examples 2021-04-11 22:42:07 +04:00
ayntee 325564d191 Update util.ts 2021-04-08 21:00:13 +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
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
ayntee 160a3ab791 ci(deploy): master -> main 2021-03-30 21:31:51 +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
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
ayntee b0c3398689 fix(util/utils): remove ID handling from case manipulation functions 2021-03-29 21:07:36 +04:00
aynteeandITOH 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 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
ayntee 163d090a88 chore(types): fix imports 2021-03-29 12:18:29 +04:00
ayntee 855c7f46fc types: add invite types (#703) 2021-03-28 22:17:00 +04:00
ayntee 3f40aeb75f types: add user types (#700)
* types: add user types

* Add CreateGroupDM
2021-03-28 20:26:07 +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
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
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
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
ayntee b74f9af48f docs: boilerplate -> template 2021-03-25 14:47:39 +04:00
ayntee acf0bd5753 style(docs/CONTRIBUTING): format file 2021-03-24 21:49:23 +04:00
ayntee ebb1d5deb7 Merge branch 'main' of https://github.com/discordeno/discordeno 2021-03-24 21:07:37 +04:00
ayntee 447d96df26 docs(CONTRIBUTING): update types guide 2021-03-24 21:05:39 +04:00
ayntee 10cb9d7eb9 types(util): add case utility types (#683)
* types(util): add case utility types

* Rename *ID to *Id
2021-03-23 19:04:46 +04:00
ayntee 6ff4654686 refactor(util): remove chooseRandom() (#682) 2021-03-23 16:47:46 +04:00
ayntee 5aef37c776 test: segregate internal imports and deps 2021-03-23 16:39:54 +04:00
ayntee c1a016ca9f fix(util/collection): .first(), .last(), .random() may return undefined (#680)
* fix(util/collection): .first() may return undefined

* fix(util/collection): .random(), .last() may return undefined
2021-03-23 14:31:29 +04:00
ayntee 519798d9cd docs(CONTRIBUTING): format file 2021-03-22 10:20:52 +04:00
ayntee 1ce2e56b68 docs(types): move guidelines to CONTRIBUTING.md 2021-03-22 10:18:53 +04:00
ayntee e4fc09069f style: format files 2021-03-20 10:08:30 +04:00
ayntee 5125ffd308 refactor: replace util/cache with cache 2021-03-20 10:06:57 +04:00
ayntee e1a9565045 test: use createChannel() 2021-03-19 15:54:34 +04:00
ayntee 9699f741fe refactor(helpers): rename createGuildChannel to createChannel (#678)
* refactor(helpers): rename createGuildChannel to createChannel

* idk
2021-03-19 13:03:24 +04:00
ayntee 489aa6d166 refactor(handlers): move presence/* to misc/* (#677) 2021-03-17 16:32:45 +04:00