Skip to content

Commit 6c7d901

Browse files
authored
Add changelog for 0.12.2 (#2880)
1 parent c9f501a commit 6c7d901

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,45 @@
33
All notable changes to this project will be documented in this file.
44
This project mostly adheres to [Semantic Versioning][semver].
55

6+
## [0.12.2] - 2024-XX-XX
7+
8+
Thanks to the following for their contributions:
9+
- [@bend-n]
10+
- [@GnomedDev]
11+
- [@jamesbt365]
12+
- [@MidSpike]
13+
- [@mkrasnitski]
14+
- [@RegenJacob]
15+
16+
### Deprecations
17+
18+
Continuing with the deprecations started in 0.12.1, many more methods and fields have been deprecated in order to make an easier upgrade path to 0.13.
19+
20+
These deprecation messages include a migration path, it is recommended to go one by one using `cargo check` and migrate each warning to reduce the burden migrating to 0.13. Following is a list of the deprecation PRs and the justification for these changes.
21+
22+
- ([#2791](https://github.com/serenity-rs/serenity/pull/2791)) The `Channel::is_nsfw` method was wrong, useless, and served better by `GuildChannel::nsfw`
23+
- ([#2794](https://github.com/serenity-rs/serenity/pull/2794)) These cache methods needed arcane borrow checker dances internally, and obscure the simplicity of the cache.
24+
- ([#2816](https://github.com/serenity-rs/serenity/pull/2816)) `Member::highest_role_info` is now strictly less powerful than the new `Guild::member_highest_role` and can avoid a cache lookup if used correctly.
25+
- ([#2825](https://github.com/serenity-rs/serenity/pull/2825))
26+
- - `Guild::is_large` is less accurate than `Guild::large`
27+
- - `Message::is_own` is super simple to implement yourself
28+
- - `Message::is_private` simply checks if `Message::guild_id` is `none`.
29+
- ([#2838](https://github.com/serenity-rs/serenity/pull/2838)) `Event::PresencesReplace` does not exist, and is a relic from when serenity supported user accounts.
30+
- ([#2861](https://github.com/serenity-rs/serenity/pull/2861)) `TeamMember::permissions` is always `["*"]`, so is useless.
31+
32+
### Other notable changes
33+
- ([#2790](https://github.com/serenity-rs/serenity/pull/2790])) Added `CreateMessage::enforce_nonce`, to prevent sending duplicate messages.
34+
- ([#2801](https://github.com/serenity-rs/serenity/pull/2801)) Added `EditProfile::banner`, allowing banners to be set for bots.
35+
- ([#2810](https://github.com/serenity-rs/serenity/pull/2810)) Added `ChannelId::get_thread_member`.
36+
- ([#2812](https://github.com/serenity-rs/serenity/pull/2812)) Added `Guild::partial_member_permissions_in`, which can be used to avoid fetching a `Member` in message events just to check permissions.
37+
- ([#2819](https://github.com/serenity-rs/serenity/pull/2819)) Added `From<User>` for `CreateEmbedAuthor`, setting the author name and icon to the `User`'s info.
38+
- ([#2813](https://github.com/serenity-rs/serenity/pull/2813)) Added `UserId::direct_message`, so you don't need a full `User` to direct message.
39+
- ([#2834](https://github.com/serenity-rs/serenity/pull/2834)) Added `Http::default_allowed_mentions` to set the `AllowedMentions` to be used with every request.
40+
- ([#2830](https://github.com/serenity-rs/serenity/pull/2830)) Added `Guild`(`Id`)`::bulk_ban`, allowing bulk banning without hitting rate limits.
41+
- ([#2836](https://github.com/serenity-rs/serenity/pull/2836)) Added support for **Message Polls**, including reading and sending them.
42+
- ([#2807](https://github.com/serenity-rs/serenity/pull/2807)) Added support for **User Apps**, alllowing user-installable application commands.
43+
- Many documentation fixes and other optimisations to improve memory and CPU usage.
44+
645
## [0.12.1] - 2024-02-28
746

847
Thanks to the following for their contributions:
@@ -5381,6 +5420,7 @@ Initial commit.
53815420

53825421
<!-- COMPARISONS -->
53835422

5423+
[0.12.2]: https://github.com/serenity-rs/serenity/compare/v0.12.1...v0.12.2
53845424
[0.12.1]: https://github.com/serenity-rs/serenity/compare/v0.12.0...v0.12.1
53855425
[0.12.0]: https://github.com/serenity-rs/serenity/compare/v0.11.7...v0.12.0
53865426
[0.11.7]: https://github.com/serenity-rs/serenity/compare/v0.11.6...v0.11.7
@@ -5506,6 +5546,7 @@ Initial commit.
55065546
[@baeuric]: https://github.com/baeuric
55075547
[@barzamin]: https://github.com/barzamin
55085548
[@bdashore3]: https://github.com/bdashore3
5549+
[@bend-n]: https://github.com/bend-n
55095550
[@benjaminrsherman]: https://github.com/benjaminrsherman
55105551
[@ben-brook]: https://github.com/ben-brook
55115552
[@bikeshedder]: https://github.com/bikeshedder
@@ -5638,6 +5679,7 @@ Initial commit.
56385679
[@megumisonoda]: https://github.com/megumisonoda
56395680
[@mendess]: https://github.com/mendess
56405681
[@merlleu]: https://github.com/merlleu
5682+
[@MidSpike]: https://github.com/MidSpike
56415683
[@Miezhiko]: https://github.com/Miezhiko
56425684
[@miqbalrr]: https://github.com/miqbalrr
56435685
[@mjsir911]: https://github.com/mjsir911
@@ -5673,6 +5715,7 @@ Initial commit.
56735715
[@Roughsketch]: https://github.com/Roughsketch
56745716
[@Rstar284]: https://github.com/Rstar284
56755717
[@rasm47]: https://github.com/rasm47
5718+
[@RegenJacob]: https://github.com/RegenJacob
56765719
[@rsaihe]: https://github.com/rsaihe
56775720
[@Ruthenic]: https://github.com/Ruthenic
56785721
[@SOF3]: https://github.com/SOF3

0 commit comments

Comments
 (0)