Update Rust crate serenity to 0.12.1 #46

Merged
Renovate merged 1 commits from renovate/serenity-0.x into master 2024-02-28 17:52:05 -05:00
Collaborator

This PR contains the following updates:

Package Type Update Change
serenity dependencies patch 0.12.0 -> 0.12.1

Release Notes

serenity-rs/serenity (serenity)

v0.12.1

Compare Source

Thanks to the following for their contributions:

  • [@​arqunis](https://github.com/arqunis)]
    
  • [@​GnomedDev](https://github.com/GnomedDev)]
    
  • [@​jamesbt365](https://github.com/jamesbt365)]
    
  • [@​kangalio](https://github.com/kangalio)]
    
  • [@​logand22](https://github.com/logand22)]
    
  • [@​mkrasnitski](https://github.com/mkrasnitski)]
    
  • [@​SenseiHiraku](https://github.com/SenseiHiraku)]
    
  • [@​vaporoxx](https://github.com/vaporoxx)]
    
  • [@​vidhanio](https://github.com/vidhanio)]
    
  • [@​Xaeroxe](https://github.com/Xaeroxe)]
    
  • [@​yanorei32](https://github.com/yanorei32)]
    
    
Notable changes

In this release, the standard framework has been deprecated
(#​2733).

As Discord continues to endorse and evolve application commands (/...
commands, user commands, message commands, etc.), the standard framework
becomes increasingly outdated. Bots are also steadily losing (and already have
lost) access to contents of messages, making it difficult to build a
prefix-only bot. Unless you plan on restricting your bot to only accept
commands in DMs, allowing its presence in only fewer than 100 guilds, or
presenting a reasonable justification to Discord for permission to continue
using message contents, you should migrate to application commands. We
recommend poise, which supports writing
both prefix and application commands with a #[command] macro like the
standard framework.

Why not just update the framework?

Poise already exists and is better than the standard framework. Efforts should
be directed at improving poise instead. To support application commands would
require an overhaul of the standard framework, as they are special (for
instance, Discord parses arguments on behalf of the bot and passes them as
structured data, whereas for prefix commands, the bot must parse by itself).

Smaller, but still notable changes
  • (#​2621) Add a temporary cache for messages.
  • (#​2649) Deprecate RoleId::to_role_cached - Use Guild::roles instead.
  • (#​2726) Pack bitflags - Reduces alignments of bitflags! types, resulting in a smaller memory footprint.
  • (#​2696) Support attachments in forum posts.
  • (#​2560) Add support for monetization APIs.
  • (#​2648) Deprecate inefficient Emoji helpers - Use the emoji methods on GuildId/Guild instead.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serenity](https://github.com/serenity-rs/serenity) | dependencies | patch | `0.12.0` -> `0.12.1` | --- ### Release Notes <details> <summary>serenity-rs/serenity (serenity)</summary> ### [`v0.12.1`](https://github.com/serenity-rs/serenity/blob/HEAD/CHANGELOG.md#0121---2024-02-28) [Compare Source](https://github.com/serenity-rs/serenity/compare/v0.12.0...v0.12.1) Thanks to the following for their contributions: - \[[@&#8203;arqunis](https://github.com/arqunis)] - \[[@&#8203;GnomedDev](https://github.com/GnomedDev)] - \[[@&#8203;jamesbt365](https://github.com/jamesbt365)] - \[[@&#8203;kangalio](https://github.com/kangalio)] - \[[@&#8203;logand22](https://github.com/logand22)] - \[[@&#8203;mkrasnitski](https://github.com/mkrasnitski)] - \[[@&#8203;SenseiHiraku](https://github.com/SenseiHiraku)] - \[[@&#8203;vaporoxx](https://github.com/vaporoxx)] - \[[@&#8203;vidhanio](https://github.com/vidhanio)] - \[[@&#8203;Xaeroxe](https://github.com/Xaeroxe)] - \[[@&#8203;yanorei32](https://github.com/yanorei32)] ##### Notable changes In this release, **the standard framework has been deprecated** ([#&#8203;2733](https://github.com/serenity-rs/serenity/pull/2733)). As Discord continues to endorse and evolve application commands (`/...` commands, user commands, message commands, etc.), the standard framework becomes increasingly outdated. Bots are also steadily losing (and already have lost) access to contents of messages, making it difficult to build a prefix-only bot. Unless you plan on restricting your bot to only accept commands in DMs, allowing its presence in only fewer than 100 guilds, or presenting a reasonable justification to Discord for permission to continue using message contents, you should migrate to application commands. We recommend [poise](https://github.com/serenity-rs/poise), which supports writing both prefix and application commands with a `#[command]` macro like the standard framework. ##### Why not just update the framework? Poise already exists and is better than the standard framework. Efforts should be directed at improving poise instead. To support application commands would require an overhaul of the standard framework, as they are special (for instance, Discord parses arguments on behalf of the bot and passes them as structured data, whereas for prefix commands, the bot must parse by itself). ##### Smaller, but still notable changes - ([#&#8203;2621](https://github.com/serenity-rs/serenity/pull/2621)) Add a temporary cache for messages. - ([#&#8203;2649](https://github.com/serenity-rs/serenity/pull/2649)) Deprecate `RoleId::to_role_cached` - Use `Guild::roles` instead. - ([#&#8203;2726](https://github.com/serenity-rs/serenity/pull/2726)) Pack bitflags - Reduces alignments of `bitflags!` types, resulting in a smaller memory footprint. - ([#&#8203;2696](https://github.com/serenity-rs/serenity/pull/2696)) Support attachments in forum posts. - ([#&#8203;2560](https://github.com/serenity-rs/serenity/pull/2560)) Add support for monetization APIs. - ([#&#8203;2648](https://github.com/serenity-rs/serenity/pull/2648)) Deprecate inefficient Emoji helpers - Use the emoji methods on `GuildId`/`Guild` instead. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
Renovate added 1 commit 2024-02-28 17:51:42 -05:00
PR created by Renovate Bot.
Renovate merged commit 1d3258126a into master 2024-02-28 17:52:05 -05:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: toast/Kon#46
No description provided.