Skip to content

fix(deps): update rust crate poise to 0.7.0 - #421

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/poise-0.x
Open

fix(deps): update rust crate poise to 0.7.0#421
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/poise-0.x

Conversation

@renovate

@renovate renovate Bot commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
poise dependencies minor 0.5.50.7.0

Release Notes

serenity-rs/poise (poise)

v0.7.0

Compare Source

New features:

  • Added configurable limits on prefix command edit tracking to prevent unintended command invocation (6ea8d6d)
    • PrefixFrameworkOptions::check_edits_against_cache (default: true) determines whether edits are checked against the cached message, when available.
    • PrefixFrameworkOptions::tracking_initiation_window (default: 15 min.) defines a window starting from message creation during which edit tracking is active.

API updates:

  • Removed redundant serenity_context and user data fields from Context (6ea554d)
    • Serenity context can be accessed via Context::serenity_context()/FrameworkContext::serenity_context.
    • User data can be accessed via Framework::user_data()/FrameworkContext::user_data()/FrameworkContext::user_data.
  • reply::CreateReply fields are now private (ead8cb1)
  • PrefixFrameworkOptions::prefix now takes Cow<'static, str> instead of String (621bf48)
  • modal::execute_modal_on_component_interaction() now takes &serenity::Context instead of impl AsRef<serenity::Context> (8f45e5d)
  • Removed magic from autocomplete (cefd69d)
    • Autocomplete functions now must return serenity::CreateAutocompleteResponse.
  • Removed builtins::help(), builtins::pretty_help(), and help_text_fn (cc20f24)
  • Inline choice parameters are now converted to String at compile time (63c89c6)
    • This makes inline choices slightly more restrictive, as byte string literals, nul-terminated C-string literals, and byte literals are no longer supported.
  • builtins::create_application_commands(), builtins::register_globally(), and builtins::register_in_guild() now take impl IntoIterator<Item = &Command<U, E>> instead of &[Command<U, E>] (d7c5599)
  • Removed specialization hacks for PopArgument and SlashArgument (2d3816c)
    • Types that do not implement PopArgument but implement FromStr must now be decorated with a new #[string] attribute, or users can implement the PopArgument trait manually.
  • Added support for the #[string] attribute to slash commands (fbf89f1)
    • Types that do not implement SlashArgument but implement FromStr must now be decorated with a new #[string] attribute, or users can implement the SlashArgument trait manually.
  • Restored support for Option<T: FromStr> arguments to prefix commands using the #[string] attribute (ff6c74b)
  • Removed redundant fields from Context and FrameworkError to reduce their sizes (83d2040)
    • Removed Context::command fields. Use Context::command() instead.
    • Removed Context::parent_commands fields. Use Context::parent_commands() instead.
    • New Context::command_tree/Context::command_tree() now contains the full invoked command tree (parents + invoked command).
    • Removed PrefixContext::action field. Use Command::prefix_action instead.
    • Removed PrefixContext::prefix field. Use Context::prefix() instead.
    • Removed prefix and msg_content from FrameworkError::UnknownCommand, which already includes the full Message object. A new content_start field gives the position in the message that the prefix ends, allowing the user to determine the prefix and message content, if necessary.

Behavior changes:

  • Permission checks have been rewritten (fd83067)
    • Previously, when the bot permissions were unknown, the command would run anyway. Now, FrameworkError::PermissionFetchFailed is returned.
  • Prefix commands no longer panic when serenity::Message::author_permissions() cannot find a channel while calculating permissions (50c2130)
  • builtins::on_error() now shows the full error source chain (3c01afc)
  • Permissions calculations now properly handle SEND_MESSAGES_IN_THREADS (fa332af)
  • Interaction type is now checked in command matching (6347d12)
    • This fixes a bug that prevented different command types (USER/MESSAGE/CHAT_INPUT) from having the same name.
  • Modal::execute_with_defaults() now properly handles a defined default value of None (26dbb0d)
    • This fixes a bug that would cause an Invalid Form Body error from Discord when a default of None was defined for an Option<String> parameter.

Miscellaneous:

  • Switched from String/Vec to Cow<'static, str>/Cow<'static, [T]> in structs::Command and related structs (a917c4c)
    • This avoids allocations and simplifies command construction, but does not impact modifying the values at runtime.
  • Removed the parse_prefix_args! and parse_slash_args! declarative macros (40e99ec)
    • Their functionality is now directly incorporated into the poise::command proc macro, which makes things more readable and maintainable, and opens the door for added features down the line.
  • Fixed several parsing bugs introduced when specialization hacks were removed (303023a)
  • Fixed exponential code generation for prefix commands with many Option<T> parameters (8d7bb43)
  • Switched from the unmaintained derivative crate to derive_where (e9ffb58)

Detailed changelog: serenity-rs/poise@v0.6.2...v0.7.0

Thanks to @​arqunis, @​GnomedDev, @​jamesbt365, @​zkxs, @​mkrasnitski, @​inklesspen, @​SabrinaJewson, and @​meditationmind!

v0.6.2

Compare Source

New features:

  • Added handler for non-command messages (1f0abfb)
  • Added builtins::pretty_help, a help command that uses embeds (ec19915)
  • Added support for modifying the last invocation of a command (c67dde5)
    • This makes it possible to shorten or lengthen a cooldown after invocation.
  • Added ability to only initialize certain roles to owners (b887224)
    • This makes it possible to specify TeamMemberRoles other than the default Admin and Developer to be initialized to owners.
  • Added support for editing initial interaction response attachments (525bd69)
  • Added support for manual cooldowns on single commands (7ae055c)
  • Added support for polls (3eefed4)
  • Added support for user-installed apps, aka user apps (773da6c)

Behavior changes:

  • The pound sign (#) is now supported in language identifiers (e.g., c#, f#) in code blocks (59dba56)
  • Fixed event handler example to remove a race condition and prevent the bot from replying to itself (9def484, 48b0318)
  • Disabled allowed mentions for Command and ArgumentParse errors (6ead1e1)
    • This prevents these errors from unintentionally pinging users.
  • Fixed additional_prefixes usage in the basic structure example (8ba38c0)
  • Snowflake ID arguments to prefix commands are now parsed as mentions where appropriate (bbc837a)
  • Updated examples to use tracing-subscriber instead of env_logger (db10b12)
  • Context menu commands now properly check default_member_permissions (e850875)
    • Previously, the builder failed to set default_member_permissions when creating a context menu command.
  • Command description length is now determined based on chars instead of bytes (e144ede)
    • This resolves an artifical constraint on languages that use multibyte (CJK) characters. Further discussion in #​379.
  • The resolved User returned by a user context menu command now includes PartialMember data when available (4c7661d)
  • Command and ArgumentParse error replies are now ephemeral (24fe146)

Miscellaneous:

  • Reduced generated code for field conversions in macros (5b369bb)
  • Bumped Rust edition to 2021 and added edition to .rustfmt.toml (1c34184, f1e79b5)

Detailed changelog: serenity-rs/poise@v0.6.1...v0.6.2

Thanks to @​kangalio, @​emilyyyylime, @​GnomedDev, @​fee1-dead, @​asibahi, @​c-git, @​Spacerulerwill, @​matteopolak, @​jamesbt365, @​NotNorom, @​keiveulbugs, @​arqunis, @​ravener, @​DocJade, @​fgardt, @​cycle-five, @​Nydauron, @​zkxs, @​yuimarudev, @​meditationmind, @​nwerosama, @​black-sock, @​TapGhoul, and @​HactarCE!

v0.6.1

Compare Source

New features:

  • Choice parameters can now be defined inline in a function signature (6167311)

    For example:

    #[choices("Europe", "Asia", "Africa", "America", "Australia", "Antarctica")]
    continent: &'static str

Detailed changelog: serenity-rs/poise@v0.6.0...v0.6.1

Thanks to @​kangalio!

v0.6.0

Compare Source

Now with serenity 0.12!

New features:

  • ChoiceParameter is now not only a derive macro, but also a trait, so you can implement it manually (bc250b8)
  • HelpConfiguration::include_description can be used to toggle whether a single command's help output includes its description, or only its help_text (0ad8ee6)

API updates:

  • A lot of structs and enum are now #[non_exhaustive] to allow backwards compatible new features in the future (035e035, 6c08cfb, 1cbfeef)
  • Command no longer has Default bounds on its generics (695ae1d)
  • Changed some field types on Command to be more idiomatic (6c08cfb)
  • CooldownTracker methods now take a dedicated user-constructable CooldownContext instead of Context<'_, U, E>, to make CooldownTracker usable outside poise internals (bd73861)

Behavior changes:

Detailed changelog: serenity-rs/poise@v0.5.7...v0.6.0

Thanks to @​kangalio, @​docwilco, @​drwilco, @​GnomedDev, @​scottbot95!


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/poise-0.x branch from c58d67b to ec9240e Compare April 13, 2026 17:11
@renovate
renovate Bot force-pushed the renovate/poise-0.x branch from ec9240e to 7bbeec2 Compare May 18, 2026 09:44
@renovate
renovate Bot force-pushed the renovate/poise-0.x branch from 7bbeec2 to 83ecf8b Compare July 20, 2026 19:37
@renovate
renovate Bot force-pushed the renovate/poise-0.x branch from 83ecf8b to 5204fd6 Compare August 12, 2026 00:56
@renovate
renovate Bot force-pushed the renovate/poise-0.x branch from 5204fd6 to 9901b05 Compare August 26, 2026 18:34
@renovate
renovate Bot force-pushed the renovate/poise-0.x branch from 9901b05 to 738dca5 Compare September 2, 2026 22:29
@renovate
renovate Bot force-pushed the renovate/poise-0.x branch from 738dca5 to adfcbc1 Compare September 6, 2026 22:15
@renovate renovate Bot changed the title fix(deps): update rust crate poise to 0.6.0 fix(deps): update rust crate poise to 0.7.0 Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants