Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: v0.1.3 backports #81

Merged
merged 22 commits into from
Aug 10, 2023
Merged

feat: v0.1.3 backports #81

merged 22 commits into from
Aug 10, 2023

Conversation

TTtie
Copy link
Member

@TTtie TTtie commented Jul 7, 2023

Backports new features from the dev branch into the latest v0.1.x release.

TTtie and others added 5 commits July 7, 2023 23:34
* initial unique username system support

* fix up wrong ordering

* add a newline between new member getter

* migrated users have 6 default avatars now

ref: discord/discord-api-docs#6218 (comment)

* emit old globalName in userUpdate

* whoops: global_name -> globalName

* copy note about single "0" discrim to Member.js
* added port option to rest options

* Add docs for the new option

---------

Co-authored-by: TTtie <me@tttie.cz>
* headers option is added to REST options

* fixed linting

* fixed typing

* changed the order of header assignment
* types: RequestHandlerOptions#port should be a number

* correct sorting

p comes before r
@TTtie TTtie added type: enhancement New feature or request scope: gateway Issues or pull requests related to gateway functionality scope: REST Issues or pull requests related to REST functionality scope: typings Issues or pull requests related to TypeScript definitions reason: Discord Issues or pull requests related to Discord's API changes scope: structures Issues or pull requests affecting the structure definitions labels Jul 7, 2023
@TTtie TTtie added this to the 0.1.3 milestone Jul 7, 2023
@TTtie TTtie self-assigned this Jul 7, 2023
@TTtie TTtie added the type: docs Improvements or additions to documentation label Jul 9, 2023
nazmigorkem and others added 15 commits July 10, 2023 16:18
* feat: support role flags

Ref: discord/discord-api-docs@1a63582

* lint, correct sorting

* add role flags to guildRoleUpdate
* feat(Client): support `with_counts` parameter in getRESTGuilds()

* update the default fetch limit

* the upper bound is unfortunately also 200 :(
* feat: support onboarding updates

* fix linting issues
)

The update() method is already called in the base class - according to JS class semantics, when calling a constructor via `super`, `this` still points to the object at the top of the prototype chain, resulting in the update() method being called twice or more down the prototype chain as the super-classes initialize.
For the time being, we're preserving both methods – the /applications/@me route still doesn't have information about the team associated with the application unlike the /oauth2/applications/@me route.
* feat: support GUILD_MEDIA channels

Ref: discord/discord-api-docs@107de2d

* correct the word order

* add MediaChannel to package exports

* consistency - extract ForumChannel type into a type alias

* add missing intellisense hints to createChannel
@TTtie TTtie merged commit 4743e36 into v0.1.x Aug 10, 2023
2 checks passed
@TTtie TTtie deleted the backports/v0.1.3 branch August 10, 2023 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reason: Discord Issues or pull requests related to Discord's API changes scope: gateway Issues or pull requests related to gateway functionality scope: REST Issues or pull requests related to REST functionality scope: structures Issues or pull requests affecting the structure definitions scope: typings Issues or pull requests related to TypeScript definitions type: docs Improvements or additions to documentation type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants