Skip to content

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

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

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

Conversation

@renovate

@renovate renovate Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
poise dependencies minor 0.6.1 → 0.7.0

Release Notes

serenity-rs/poise (poise)

v0.7.1

Compare Source

New features:

  • Add support for #[lazy] Vec<T> in prefix commands (f22a68a)

Behavior changes:

  • Fix possible panic when using additional prefixes (b4b3957)

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

Thanks to @​mkrasnitski and @​meditationmind!

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!


Configuration

📅 Schedule: (UTC)

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

🚦 Automerge: Enabled.

♻ 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 3 times, most recently from bbe2230 to 2b66e2f Compare September 14, 2026 05:59
@renovate
renovate Bot force-pushed the renovate/poise-0.x branch 5 times, most recently from 6284d25 to fd6b813 Compare September 21, 2026 20:55
@renovate
renovate Bot force-pushed the renovate/poise-0.x branch 4 times, most recently from e0675d1 to 1021998 Compare October 5, 2026 04:38
@renovate
renovate Bot force-pushed the renovate/poise-0.x branch 5 times, most recently from 7a8663e to 3e2f05c Compare October 14, 2026 01:26
@renovate
renovate Bot force-pushed the renovate/poise-0.x branch from 3e2f05c to 8b17313 Compare October 19, 2026 05:56
@renovate
renovate Bot force-pushed the renovate/poise-0.x branch from 8b17313 to 0f8dd4e Compare October 20, 2026 22:46
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