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

refactor(model)!: stage discovery has been removed #1479

Merged
merged 1 commit into from
Jan 22, 2022

Conversation

itohatweb
Copy link
Member

Closes: #1464

@github-actions github-actions bot added c-cache Affects the cache crate c-model Affects the model crate m-breaking change Breaks the public API. t-refactor Refactors APIs or code. labels Jan 21, 2022
@7596ff 7596ff merged commit 6d9bad5 into twilight-rs:main Jan 22, 2022
7596ff added a commit that referenced this pull request Jan 23, 2022
`Id<T>`

IDs are now a unified type (`Id`) with marker generics
(`ApplicationMarker`, ...) ([#1260] - [@zeylahellyer]). The new type
implements all of what each type used to implement, as well as
`FromStr`, `TryFrom<u64>`, and `TryFrom<i64>`, and others. `Id::cast`
aids in converting between IDs without copying. See the PR and the
documentation for more details.

Additions

Support scheduled events ([#1347] - [@7596ff]). Adds the following
types: `EntityMetadata`, `EntityType`, `GuildScheduledEventUser`,
`GuildScheduledEvent`, `PrivacyLevel`, and `Status`.

Changes

All types and method signatures have been updated to use the new `Id<T>`
syntax ([#1260] - [@zeylahellyer]).

The MSRV has been updated to 1.57 ([#1402] - [@zeylahellyer]).

Image hashes are now parsed and stored in a more efficient struct,
rather than deserializing as a `String` ([#1405] - [@zeylahellyer]).

The Rust edition has been updated to 2021 ([#1412] - [@vilgotf]).

`StageInstance::discoverable_disabled` and `PrivacyLevel::Public` have
been removed, as public stage instances are no longer supported ([#1479]
- [@itohatweb]).

`GuildWidget::channel_id` is now optional ([#1480] - [@itohatweb]).

[#1260]: #1260
[#1402]: #1402
[#1405]: #1405
[#1412]: #1412
[#1479]: #1479
[#1480]: #1480

[@7596ff]: https://github.com/7596ff
[@itohatweb]: https://github.com/itohatweb
[@vilgotf]: https://github.com/vilgotf
[@zeylahellyer]: https://github.com/zeylahellyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-cache Affects the cache crate c-model Affects the model crate m-breaking change Breaks the public API. t-refactor Refactors APIs or code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StageInstance::discoverable_disabled has been marked as deprecated
4 participants