chore(deps): update rust crate serenity to v0.12.2 #245
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.12.1
->0.12.2
Release Notes
serenity-rs/serenity (serenity)
v0.12.2
Compare Source
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.Channel::is_nsfw
method was wrong, useless, and served better byGuildChannel::nsfw
Member::highest_role_info
is now strictly less powerful than the newGuild::member_highest_role
and can avoid a cache lookup if used correctly.Guild::is_large
is less accurate thanGuild::large
Message::is_own
is super simple to implement yourselfMessage::is_private
simply checks ifMessage::guild_id
isnone
.Event::PresencesReplace
does not exist, and is a relic from when serenity supported user accounts.TeamMember::permissions
is always["*"]
, so is useless.Other notable changes
CreateMessage::enforce_nonce
, to prevent sending duplicate messages.EditProfile::banner
, allowing banners to be set for bots.ChannelId::get_thread_member
.Guild::partial_member_permissions_in
, which can be used to avoid fetching aMember
in message events just to check permissions.From<User>
forCreateEmbedAuthor
, setting the author name and icon to theUser
's info.UserId::direct_message
, so you don't need a fullUser
to direct message.Http::default_allowed_mentions
to set theAllowedMentions
to be used with every request.Guild
(Id
)::bulk_ban
, allowing bulk banning without hitting rate limits.Configuration
📅 Schedule: Branch creation - "every weekend" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.