Skip to content

Commit

Permalink
Bump to 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kangalio committed Nov 22, 2022
1 parent c097ccc commit a89c442
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# 0.5.0

New features:
- Added `Context::parent_commands()`
- Added `Context::invocation_string()`
- Added `builtins::register_in_guild()` and `builtins::register_globally()` convenience functions
- The return value of autocomplete callbacks can be any serializable type now
- `Context` can now be passed directly into most serenity API functions
- Because it now implements `AsRef<Cache>`, `AsRef<Http>`, `AsRef<ShardMessenger>`, and `CacheHttp` traits
- Added `execute_modal()` function with support for modal timeouts

API updates:
- `Modal::create()` gained a `custom_id: String` parameter
- To make it possible to tell apart two modal interactions
- Removed `CreateReply::reference_message(MessageReference)` in favor of `CreateReply::reply(bool)`
- For the unusual case of setting a different reference message than the invocation (why would you? I'm genuinely interested), you can still convert the `CreateReply` into `serenity::CreateMessage` manually via `.to_prefix()` and call `serenity::CreateMessage`'s `reference_message()` method
- Renamed `FrameworkBuilder::user_data_setup()` method to `setup()`
- Renamed `FrameworkOptions::listener` field to `event_handler`
- Renamed `Context::discord()` method to `serenity_context()`

Behavior changes:
- `register_application_commands_buttons()` now has emojis, reworked wording, and prints the time taken to register
- `Modal::execute()` always responds to the correct modal now
- When a subcommand is invoked, all parent commands' checks are run too, now

Detailed changelog: https://github.com/kangalioo/poise/compare/v0.4.1...v0.5.0

# 0.4.1

Behavior changes:
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["kangalioo <[email protected]>"]
edition = "2018"
name = "poise"
version = "0.4.1"
version = "0.5.0"
description = "A Discord bot framework for serenity"
license = "MIT"
repository = "https://github.com/kangalioo/poise/"
Expand All @@ -12,7 +12,7 @@ tokio = { version = "1.21.1", default-features = false } # for async in general
futures-core = { version = "0.3.13", default-features = false } # for async in general
futures-util = { version = "0.3.13", default-features = false } # for async in general
once_cell = { version = "1.7.2", default-features = false, features = ["std"] } # to store and set user data
poise_macros = { path = "macros", version = "0.4.0" } # remember to update the version on changes!
poise_macros = { path = "macros", version = "0.5.0" } # remember to update the version on changes!
async-trait = { version = "0.1.48", default-features = false } # various traits
regex = { version = "1.6.0", default-features = false, features = ["std"] } # prefix
log = { version = "0.4.14", default-features = false } # warning about weird state
Expand Down
2 changes: 1 addition & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "poise_macros"
version = "0.4.0" # remember to update the version
version = "0.5.0" # remember to update the version
authors = ["kangalioo <[email protected]>"]
edition = "2018"
description = "Internal macro implementation crate of poise"
Expand Down

0 comments on commit a89c442

Please sign in to comment.