Commit Graph
62 Commits
Author SHA1 Message Date
rigormorrtissandITOH c66eed620b types: add defaultPermission field to EditGlobalApplicationCommand (#1094)
* types: add default_permission field to EditGlobalApplicationCommand

* types: modify default_permission field name to camel case

Co-authored-by: ITOH <to@itoh.at>

Co-authored-by: ITOH <to@itoh.at>
2021-08-14 16:25:10 +04:00
rigormorrtiss c654cae4c4 Update edit_member.ts 2021-08-09 23:40:37 +04:00
rigormorrtiss 95de95ced9 fix(helpers): pass null if options.channelId is falsy 2021-08-09 23:24:38 +04:00
rigormorrtiss ac6f42598f add(structures): cache.requiredStructureProperties.members guilds prop to type (#1077) 2021-07-09 22:01:20 +01:00
rigormorrtiss 515074acf7 refactor(types): fix typo in DiscordJsonErrorCodes enum 2021-07-07 08:44:54 +04:00
rigormorrtiss ddcf25b41c Merge branch 'main' of https://github.com/discordeno/discordeno into feat-3193 2021-06-30 17:15:25 +04:00
rigormorrtiss fe2ea360ce feat(types/codes): add 20035 code to DiscordJsonErrorCodes (#1067) 2021-06-30 11:09:53 +04:00
rigormorrtiss d059ce7999 feat(types): add 10068 code to JsonErrorCodes 2021-06-30 10:31:49 +04:00
rigormorrtiss a0087edecb add: stickerItems field to Message (#1066) 2021-06-28 20:09:46 +01:00
rigormorrtiss 6ea15a6485 fix(types): update MessageSticker fields 2021-06-17 21:12:52 +04:00
rigormorrtiss 50fff43007 docs(types): deprecate stickers field in Message 2021-06-17 21:12:20 +04:00
rigormorrtiss dff3806397 feat(types): add available, guildId, user, sortValue to MessageSticker (#1052) 2021-06-17 21:03:53 +04:00
rigormorrtiss 6008243b6a docs(types): add clarification for guild stickers for MessageSticker#tags (#1051) 2021-06-17 21:01:45 +04:00
rigormorrtissandITOH ddf5d9f490 add(helpers): connectToVoiceChannel() (#1048)
* feat(helpers): add joinVoiceChannel() helper

* Remove if-statement validating if channelId is present or not

* refactor(helpers): use snakelize()

* Rename to connectToVoiceChannel()

Co-authored-by: ITOH <to@itoh.at>

* Require VIEW_CHANNEL permission including CONNECT

Co-authored-by: ITOH <to@itoh.at>

* Change default value of third argument to {}

* Remove usage of Partial and mark options as optional

* Default selfDeaf to true by default

* .

* Add connectToVoiceChannel() to helpers module

* docs(helpers): add jsdoc block to connectToVoiceChannel()

* Use AtLeastOne type for options

* Default value for selfMute option

* Update src/helpers/voice/connect_to_voice_channel.ts

Co-authored-by: ITOH <to@itoh.at>

Co-authored-by: ITOH <to@itoh.at>
2021-06-16 21:02:21 +02:00
rigormorrtiss 7cfc5def85 build: update dependencies to latest 2021-06-16 17:51:05 +04:00
rigormorrtiss e7414337f3 fix(handlers): non-null-assert payload.id in THREAD_MEMBER_UPDATE (#1045) 2021-06-16 10:00:20 +04:00
rigormorrtiss 83fd5d997c fix(types): mark id, userId as optional in ThreadMember (#1044) 2021-06-15 13:17:11 +04:00
rigormorrtiss c1ffa6b5f5 feat(types): add defaultAutoArchiveDuration field to Channel (#1043) 2021-06-15 12:55:58 +04:00
rigormorrtiss 7e1e815ee0 feat(types): add stageInstance field to Invite (#1041)
* feat(types): add stageInstance field to Invite

* feat(types): add stageInstance field to Invite

* .

* Convert members field to an array
2021-06-15 12:48:06 +04:00
rigormorrtiss aad3f038d8 feat(types): add 16000{4,5,6,7} to DiscordJsonErrorCodes (#1033) 2021-06-15 12:45:02 +04:00
rigormorrtiss 502833539f change: rename proxyEvents plugin to proxy_events (#1020) 2021-06-05 10:53:41 +01:00
rigormorrtiss 4bf485ba84 add: ApplicationCommand#guildId (#1017) 2021-06-05 10:13:58 +02:00
rigormorrtiss 56bd11b4ff add: Ticket, Monetization, Stickers guild features (#1014) 2021-06-05 10:12:54 +02:00
rigormorrtissandITOH 3e8e72288d add: audit log types for stage instances (#1013)
* feat(types/audit_log): add stage instances to events

* fix: add StageInstanceUpdate

* fix: add privacy_level change key

Co-authored-by: ITOH <to@itoh.at>
2021-06-05 10:11:15 +02:00
rigormorrtiss 501772a9b5 fix: VoiceState#member is not nullable (#1018)
This reverts commit 7750f8f467.
2021-06-05 10:05:13 +02:00
rigormorrtiss 7750f8f467 fix: VoiceState#member nullable (#995)
* fix(types/voice): member field in VoiceState is nullable

* member is optional for live stages

* Update JSDoc comment block for VoiceState#member

* Revert "member is optional for live stages"

This reverts commit 2faa8b129b.

* feat(handlers/voice): add voiceLurkerJoin event
2021-06-04 20:45:47 +02:00
rigormorrtiss aabc8db7e1 add: JSON Error Code 20031 (#1016) 2021-06-04 11:12:34 +02:00
rigormorrtiss a92143e919 fix: Application#owner is optional (#1012) 2021-06-03 09:33:19 +02:00
rigormorrtiss ada3e9b43a perf(rest): use Object.keys() instead 2021-05-29 21:37:58 +04:00
rigormorrtiss 823135b73c chore: update deps to latest version 2021-05-28 14:59:48 +04:00
rigormorrtiss 0cbb22f9a3 change: interactionTypes rename Button to MessageComponent (#993) 2021-05-27 12:30:56 +02:00
rigormorrtiss 90c93bdf6f InteractionResponseTypes: add: UpdateMessage & change: rename DefferedMessageUpdate to DeferredUpdateMessage (#996) 2021-05-27 12:21:43 +02:00
rigormorrtissandITOH c1459d4e12 add: getDiscovery() & change: rename endpoint constant DISCOVERY_MODIFY to DISCOVERY_METADATA (#975)
* feat(helpers/discovery): add getDiscovery() helper

* change: prettier code

* fix: resolve promise and add first argument

* Use DISCOVERY_METADATA endpoint instead

* again, magical commits due to prettier workflow to the origin branch

* change: prettier code

* change: prettier code

* Add permission inhibitors

* Use requireBotGuildPermissions()

* remove skillz bunlder code

Co-authored-by: ITOH <to@itoh.at>
2021-05-26 20:23:41 +02:00
rigormorrtiss f01143145d Directly pass options to snakelize() 2021-05-26 22:10:36 +04:00
rigormorrtiss 6fe7d0e1dc fix(helpers/interactions): convert options to snake case 2021-05-26 22:09:34 +04:00
rigormorrtiss 09450e5d74 fix(helpers): convert options case to snake case 2021-05-26 22:01:27 +04:00
rigormorrtiss 4b8f009277 change: get discovery change array to collection in jsdoc block (#974) 2021-05-22 10:24:22 +02:00
a6f7789474 add(types): nsfw_level field to Guild (#958)
* feat(types/guilds): add nsfw_level field

* feat(types/guilds): add nsfw_level field to Guild

* style: format changed files

* Update guild.ts

* GuildNSFWLevel -> GuildNsfwLevel

* GuildNSFWLevel -> GuildNsfwLevel

* Update src/types/guilds/guild.ts

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: ITOH <to@itoh.at>
2021-05-22 09:50:10 +02:00
8a4968f1af add(types): stage discovery privacy fields (#957)
* feat: add stage discovery fields

* feat: add stage discovery fields

* Update src/types/channels/privacy_level.ts

Co-authored-by: ITOH <to@itoh.at>

* change: prettier code

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: ITOH <to@itoh.at>
Co-authored-by: Skillz4Killz <Skillz4Killz@users.noreply.github.com>
2021-05-22 09:41:06 +02:00
rigormorrtiss 10b03c3ead add(types): DiscordCertifiedModerator to user flags enum (#956) 2021-05-21 09:19:18 +02:00
rigormorrtiss dd8c51f3d2 change: import types from specific files (#953)
* fix: import types from specific files

* Use import syntax for enums
2021-05-18 18:31:49 +02:00
rigormorrtiss 4e7d9053d1 change(types): rename eventHandlers.ts to event_handlers.ts (#951) 2021-05-18 18:30:54 +02:00
9555de5ad3 add: stage instances events (#944)
* feat: add stage instances events

* feat: add stage instances events

* Add new line

* Add new lines

* Sort event declaration alphabetically

* Move to types/discordeno

* Update src/types/discordeno/eventHandlers.ts

* Update src/types/discordeno/stage_instance.ts

* Update src/types/guilds/guild.ts

* Apply suggestions

* Commit from GitHub Actions (Lint)

* Remove DiscordenoStageInstance

* Directly pass data.d

* Commit from GitHub Actions (Lint)

Co-authored-by: rigormorrtiss <rigormorrtiss@users.noreply.github.com>
Co-authored-by: itohatweb <to@itoh.at>
2021-05-17 20:57:16 +02:00
rigormorrtiss 151159c499 ci(lint): remove ignore flag 2021-05-16 11:14:07 +04:00
rigormorrtiss d13bbc1d14 fix(types): joinedAt is nullable (#932) 2021-05-14 19:43:00 +01:00
rigormorrtiss a0bd415cbe style: fix lint warnings (#935) 2021-05-13 10:37:31 +04:00
rigormorrtiss 6e7a7efd1b ci(lint): remove unstable flag (#933) 2021-05-13 10:33:40 +04:00
rigormorrtiss a6dced08bc fix(types): camelize pack_id field (#934) 2021-05-13 10:33:21 +04:00
rigormorrtissandITOH 275d17c6fe add: stage instances (#924)
* feat: implement stage instances

Reference: https://github.com/discord/discord-api-docs/pull/2898

* feat: implement stage instances

* Update src/types/misc/stage_instance.ts

Co-authored-by: ITOH <to@itoh.at>

* Update src/helpers/misc/delete_stage_instance.ts

Co-authored-by: ITOH <to@itoh.at>

* Update src/types/misc/stage_instance.ts

Co-authored-by: ITOH <to@itoh.at>

* Move stage instances related modules to channels module

* Move to channels

* Move to channels

* Add permission checks

* Add permissions checl

* Ad inhibitors

* style: fix lint warnings

* Do not throw & add import type

Co-authored-by: ITOH <to@itoh.at>
2021-05-12 14:57:45 +01:00
rigormorrtiss 489ec3d9d7 add(structures): applicationId to Message (#923) 2021-05-12 08:27:48 +01:00
rigormorrtiss 09dc3d11af refactor(util): util-specific dependencies file (#920) 2021-05-10 21:31:33 +04:00
rigormorrtiss e81f6f7353 fix(rest): reject a string instead of object (#918)
* fix(rest): reject a string instead of object

* reject an error for stack trace
2021-05-10 15:29:14 +01:00
rigormorrtiss c116327326 Merge branch 'test-utils' of https://github.com/rigormorrtiss/discordeno into test-utils 2021-05-06 13:19:35 +04:00
rigormorrtiss 4c58c357c1 Merge branch 'main' of https://github.com/discordeno/discordeno into test-utils 2021-05-06 13:18:41 +04:00
rigormorrtiss 97f46431d4 Merge branch 'main' into test-utils 2021-05-06 12:34:27 +04:00
rigormorrtiss 814f8d7d16 test(util): add options & choices tests 2021-05-06 11:13:04 +04:00
rigormorrtiss 6f280e7781 change(types): move error & file_content to discordeno/ (#903)
* refactor(types): move errors, file_content module to types/discordeno

* refactor(types): move error & file_content module to discordeno/

* Update and fix import statements
2021-05-05 17:19:28 +01:00
rigormorrtiss 02eb2de8f2 add(tests): validateSlashCommands (#899)
* test(util): add missing tests for validateSlashCommands()

* Summarize the name of the test suites

* Add more tests

* Concise and correct the suite name
2021-05-05 14:26:10 +01:00
rigormorrtiss 8c786bfe26 Merge branch 'main' into feat-2869 2021-05-03 21:40:27 +04:00
rigormorrtiss 5a74c3cb8e feat(types): add 30037 code to JSON error codes enum
Reference: https://github.com/discord/discord-api-docs/pull/2869
2021-05-02 21:22:12 +04:00
rigormorrtiss ee164bff22 remove(types): System user flag (#889)
Reference: https://github.com/discord/discord-api-docs/commit/9293f0d490ac6acf9d627e429e5a8131b303b528

BREAKING: The flag "System" has been removed from the documentation on 9 April 2021
2021-05-02 17:57:18 +01:00
rigormorrtiss a33193fa92 remove(types): privateChannels field from Ready (#890)
* refactor(types): remove privateChannels field from Ready

BREAKING: since Tuesday, 6 April 2021, private_channels field has been undocumented by @night. Reference commit: https://github.com/discord/discord-api-docs/commit/f36156dbb641f5c4d4f4593f345bfd6e27fdee08
2021-05-02 17:56:13 +01:00