* Support integrationTypesConfig in Application
* Add support for commands with integrationTypes and contexts
And deprecate the dmPermission boolean, it is being replaced by contexts
* Update contexts comment to make it more clear
* User-Installed apps
* Add integrationType oauth parameter
fixes#3517
* Add null to contexts
closes#3523
* Mark oauth2 install params as nullable
closes#3525
* Fix typescript errors
* Add preview notices
---------
Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com>
* Update docusaurus typescript setup for v3
And fix lint-staged and eslint
* Enable automatic JSX runtime
* Remove babel config and dependencies
* update yarn.lock
* add typecheck to site workflow
* update typedoc config
* downgrade docusaurus packages
* Update site.yml
* Type context and options in webpack-docusaurus-plugin.ts
* Update env tips and add minimal examples for node and bun
And update the one from deno that was really out of date
---------
Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com>
* Explicitly check for null or undefined
* fix formatting error
This file isn't even modified by this pr, but ok
* revert checkIfExists, manually review each case
* Update for the RoleFlags and AttachmentFlags
* Fix need for TS bang (!)
* update invite transformer
* update invite transformer
* fix consistency
* add guild safety | closes#3020
* Adds approx guild count | closes#3078
* Team member permissions | closes#3105
According to current documentation DiscordTeamMemberRole#Owner does not have a value anymore, in this commit it still had so it is included to be changed by a later commit
* Default thread ratelimit | closes#3216
* Entitlements and SKUs | closes#3219
The entitlements events needs testing for the typing
* Typing endpoint docs update | closes#3222
* Add guildScheduledEventId to CreateStageInstance | closes#3228
* Add listSkus helper
I did forget it in the commit before
* Update Application Endpoints | closes#3230
* Update documentation | closes#3233
* fix starting a thread in forum | closes#3234 & closes#3036
* Add fired events on get widget endpoint | closes#3235
* Add fired events on get widget endpoint pt2 | closes#3236
* Update SKU and Entitlement fields | closes#3238
* Split permissions for expressions and events | closes#3249
* Make GetEntitlements#excludeEnded more specific | closes#3251
* Fix thread/forum channel docs regression | closes#3252
* Another description change for GetEntitlements#excludeEnded | closes#3253
* Document applied_tags on Execute Webhook | closes#3265
* Fix entitlement event types
* Add types from api-docs-commit related to #2930
* Add rest from api-docs-commit related to #2930
* Add types from api-docs-commit related to #3072
* Add rest from api-docs-commit related to #3072
* Add types from api-docs-commit related to #3247
* Add transformers and helpers
Exceptions:
- Achievement Icon and Store Page Asset - Game SDK
- Guild Member Banner - Doesn't have documented the banner asset hash
- User Avatar Decoration - Already included in #3257
* feat: add support for customizers
* Fixing typescript build errors
* add customers for transformGatewayBot
and transformThreadMemberGuildCreate customizers and transformer
* Use desiredProperties in transformGuild
* join channels and threads, make threads a getter
* remove not necessary payload checks
* readd the payload checks, add missing ones
This reverts commit b12e3f09cb.
* add OAuth2 routes
* Add oauth2 methods to rest
* Add rest manager methods, Add token params
* Add authorization headers
* Add auth to editUserApplicationRoleConnection
* fix logging header always displaying bot as auth
* Add OAuth2Scope enum
* Start testing ratelimit handling
* Fix now scopes are separated by a space
* move webhook object to DiscordAccessTokenResponse
* convert payload to snake_case
* fix some typings
* more types fixes
* add support for upserting commands with tokens
* handle correctly ratelimit and concurrently
* add guild to DiscordAccessTokenResponse
* Add oauth2 create link function
* Fix removeTokenPrefix to support Bearer tokens
* update jsdoc comment for removeTokenPrefix
* fix removeTokenPrefix unit tests
* fix see link on getMember and getCurrentMember
* add bot helpers and fix some types
* Use objects to pass the bearer tokens
* fix Deno issue with Buffer.from
* Merge 'upstream/main' into feat/oauth2 to fix merge conflict
* Fix debug queue logging
* keep only 1 route for current user
* add Bearer prefixed url to the rest of the logs
---------
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>