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

Bump serenity from 0.12.1 to 0.12.2 #180

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 2, 2024

Bumps serenity from 0.12.1 to 0.12.2.

Release notes

Sourced from serenity's releases.

v0.12.2

Thanks to the following for their contributions:

Deprecations

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.

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.

  • (#2791) The Channel::is_nsfw method was wrong, useless, and served better by GuildChannel::nsfw
  • (#2794) These cache methods needed arcane borrow checker dances internally, and obscure the simplicity of the cache.
  • (#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.
  • (#2825)
    • Guild::is_large is less accurate than Guild::large
    • Message::is_own is super simple to implement yourself
    • Message::is_private simply checks if Message::guild_id is none.
  • (#2838) Event::PresencesReplace does not exist, and is a relic from when serenity supported user accounts.
  • (#2861) TeamMember::permissions is always ["*"], so is useless.

Other notable changes

  • (#2790) Added CreateMessage::enforce_nonce, to prevent sending duplicate messages.
  • (#2801) Added EditProfile::banner, allowing banners to be set for bots.
  • (#2810) Added ChannelId::get_thread_member.
  • (#2812) Added Guild::partial_member_permissions_in, which can be used to avoid fetching a Member in message events just to check permissions.
  • (#2819) Added From<User> for CreateEmbedAuthor, setting the author name and icon to the User's info.
  • (#2813) Added UserId::direct_message, so you don't need a full User to direct message.
  • (#2834) Added Http::default_allowed_mentions to set the AllowedMentions to be used with every request.
  • (#2830) Added Guild(Id)::bulk_ban, allowing bulk banning without hitting rate limits.
  • (#2836) Added support for Message Polls, including reading and sending them.
  • (#2807) Added support for User Apps, alllowing user-installable application commands.
  • (#2882) Added support for super reactions.
  • Many documentation fixes and other optimisations to improve memory and CPU usage.
Changelog

Sourced from serenity's changelog.

[0.12.2] - 2024-06-01

Thanks to the following for their contributions:

Deprecations

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.

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.

  • (#2791) The Channel::is_nsfw method was wrong, useless, and served better by GuildChannel::nsfw
  • (#2794) These cache methods needed arcane borrow checker dances internally, and obscure the simplicity of the cache.
  • (#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.
  • (#2825)
    • Guild::is_large is less accurate than Guild::large
    • Message::is_own is super simple to implement yourself
    • Message::is_private simply checks if Message::guild_id is none.
  • (#2838) Event::PresencesReplace does not exist, and is a relic from when serenity supported user accounts.
  • (#2861) TeamMember::permissions is always ["*"], so is useless.

Other notable changes

  • (#2790) Added CreateMessage::enforce_nonce, to prevent sending duplicate messages.
  • (#2801) Added EditProfile::banner, allowing banners to be set for bots.
  • (#2810) Added ChannelId::get_thread_member.
  • (#2812) Added Guild::partial_member_permissions_in, which can be used to avoid fetching a Member in message events just to check permissions.
  • (#2819) Added From<User> for CreateEmbedAuthor, setting the author name and icon to the User's info.
  • (#2813) Added UserId::direct_message, so you don't need a full User to direct message.
  • (#2834) Added Http::default_allowed_mentions to set the AllowedMentions to be used with every request.
  • (#2830) Added Guild(Id)::bulk_ban, allowing bulk banning without hitting rate limits.
  • (#2836) Added support for Message Polls, including reading and sending them.
  • (#2807) Added support for User Apps, alllowing user-installable application commands.
  • (#2882) Added support for super reactions.
  • Many documentation fixes and other optimisations to improve memory and CPU usage.
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [serenity](https://github.com/serenity-rs/serenity) from 0.12.1 to 0.12.2.
- [Release notes](https://github.com/serenity-rs/serenity/releases)
- [Changelog](https://github.com/serenity-rs/serenity/blob/current/CHANGELOG.md)
- [Commits](serenity-rs/serenity@v0.12.1...v0.12.2)

---
updated-dependencies:
- dependency-name: serenity
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jun 2, 2024
@N0D4N N0D4N merged commit f312d70 into master Jun 2, 2024
9 checks passed
@N0D4N N0D4N deleted the dependabot/cargo/serenity-0.12.2 branch June 2, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant