Skip to content

Commit a89c442

Browse files
committed
Bump to 0.5.0
1 parent c097ccc commit a89c442

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
# 0.5.0
2+
3+
New features:
4+
- Added `Context::parent_commands()`
5+
- Added `Context::invocation_string()`
6+
- Added `builtins::register_in_guild()` and `builtins::register_globally()` convenience functions
7+
- The return value of autocomplete callbacks can be any serializable type now
8+
- `Context` can now be passed directly into most serenity API functions
9+
- Because it now implements `AsRef<Cache>`, `AsRef<Http>`, `AsRef<ShardMessenger>`, and `CacheHttp` traits
10+
- Added `execute_modal()` function with support for modal timeouts
11+
12+
API updates:
13+
- `Modal::create()` gained a `custom_id: String` parameter
14+
- To make it possible to tell apart two modal interactions
15+
- Removed `CreateReply::reference_message(MessageReference)` in favor of `CreateReply::reply(bool)`
16+
- 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
17+
- Renamed `FrameworkBuilder::user_data_setup()` method to `setup()`
18+
- Renamed `FrameworkOptions::listener` field to `event_handler`
19+
- Renamed `Context::discord()` method to `serenity_context()`
20+
21+
Behavior changes:
22+
- `register_application_commands_buttons()` now has emojis, reworked wording, and prints the time taken to register
23+
- `Modal::execute()` always responds to the correct modal now
24+
- When a subcommand is invoked, all parent commands' checks are run too, now
25+
26+
Detailed changelog: https://github.com/kangalioo/poise/compare/v0.4.1...v0.5.0
27+
128
# 0.4.1
229

330
Behavior changes:

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["kangalioo <[email protected]>"]
33
edition = "2018"
44
name = "poise"
5-
version = "0.4.1"
5+
version = "0.5.0"
66
description = "A Discord bot framework for serenity"
77
license = "MIT"
88
repository = "https://github.com/kangalioo/poise/"
@@ -12,7 +12,7 @@ tokio = { version = "1.21.1", default-features = false } # for async in general
1212
futures-core = { version = "0.3.13", default-features = false } # for async in general
1313
futures-util = { version = "0.3.13", default-features = false } # for async in general
1414
once_cell = { version = "1.7.2", default-features = false, features = ["std"] } # to store and set user data
15-
poise_macros = { path = "macros", version = "0.4.0" } # remember to update the version on changes!
15+
poise_macros = { path = "macros", version = "0.5.0" } # remember to update the version on changes!
1616
async-trait = { version = "0.1.48", default-features = false } # various traits
1717
regex = { version = "1.6.0", default-features = false, features = ["std"] } # prefix
1818
log = { version = "0.4.14", default-features = false } # warning about weird state

macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "poise_macros"
3-
version = "0.4.0" # remember to update the version
3+
version = "0.5.0" # remember to update the version
44
authors = ["kangalioo <[email protected]>"]
55
edition = "2018"
66
description = "Internal macro implementation crate of poise"

0 commit comments

Comments
 (0)