Skip to content

Commit 9e0a3a4

Browse files
committed
Bump to 0.2.0, add CHANGELOG.md
1 parent ef311ac commit 9e0a3a4

4 files changed

Lines changed: 35 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# 0.2.0
2+
3+
New features:
4+
- `PrefixFrameworkOptions::ignore_bots` to disable executing commands posted by bots
5+
- `builtins::register_application_commands_buttons()` allows managing slash command registration with buttons
6+
- `#[poise(subcommands(...))]` attribute argument as a convenient alternative to manually setting the `Command::subcommands` field
7+
- `dispatch_event()` function to allow running your own event loop without involving Framework at all
8+
- `Modal::create()` and `Modal::execute_with_defaults()` can be used to spawn a modal with pre-filled values
9+
- `default_member_permissions` command attribute argument, part of Discord Permissions V2
10+
- `Context::partial_guild` to easily get guild information without cache enabled
11+
12+
API updates:
13+
- Poise no longer depends on serenity's cache feature
14+
- Some structs and enums were made non-exhaustive to make future non-breaking changes easier
15+
- The `Event` enum has been updated to include all `serenity::EventHandler` events again
16+
- `FrameworkBuilder::initialize_owners()` takes self instead of &mut self, like the other builder methods
17+
- The macro generated code emits `::std::result::Result` instead of `Result` now, which prevents collisions with user-defined Result type aliases
18+
- `CreateReply` now implements `Clone`
19+
- Some callbacks were changed to receive `FrameworkContext<'_, U, E>` instead of `&Framework<U, E>` (had to be done for `dispatch_event()`)
20+
21+
Behavior changes:
22+
- Autocomplete callbacks and argument parse errors don't cause a cooldown trigger anymore
23+
- Features using the bot's ID now work again (execute_self_messages, required_bot_permissions, mention_as_prefix)
24+
- Guild owners can no longer register slash commands in their guild (only bot owners now)
25+
- Compile times should be faster through less monomorphization bloat
26+
- Attachments in initial responses are supported now
27+
28+
# 0.1.0
29+
30+
Initial crates.io release

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 <jannik.a.schaper@web.de>"]
33
edition = "2018"
44
name = "poise"
5-
version = "0.1.0"
5+
version = "0.2.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.4.0", 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.1.0" } # remember to update the version on changes!
15+
poise_macros = { path = "macros", version = "0.2.0" } # remember to update the version on changes!
1616
async-trait = { version = "0.1.48", default-features = false } # various traits
1717
regex = { version = "1.5.4", 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.1.0" # remember to update the version
3+
version = "0.2.0" # remember to update the version
44
authors = ["kangalioo <jannik.a.schaper@web.de>"]
55
edition = "2018"
66
description = "Internal macro implementation crate of poise"

0 commit comments

Comments
 (0)