Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge next into serenity-next #192

Merged
merged 98 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from 95 commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
4152e8a
Move check inherit testing code to separate file
kangalio Nov 2, 2022
3c04a28
Quickstart: auto-register commands on startup
kangalio Nov 3, 2022
af099d4
user_data_setup->setup
kangalio Nov 3, 2022
6ab42b0
Rearrange quickstart type definitions
kangalio Nov 3, 2022
e044c9c
Add register_in_guild and register_globally convenience
kangalio Nov 3, 2022
471a2c2
Rename listener to event_handler
kangalio Nov 6, 2022
f082272
Fix fmt and docs
kangalio Nov 13, 2022
90ac24a
Change autocomplete callback value conversion from json::Value::from(…
chancedrigor Nov 15, 2022
713271b
serenity_context and poise::Context traits
kangalio Nov 16, 2022
e7121b6
Allow supplying timeout to modal execute
kangalio Nov 19, 2022
5399abf
Fix example
kangalio Nov 19, 2022
c097ccc
Fix docs
kangalio Nov 19, 2022
a89c442
Bump to 0.5.0
kangalio Nov 22, 2022
09d8421
[Feature] Allow to bypass command checks for owners (#130)
peanutbother Nov 30, 2022
6778130
Separate cooldowns and min max testing
kangalio Dec 5, 2022
7015c2b
Don't panic on modal timeout
kangalio Dec 5, 2022
b7a9f1f
Fallback to HTTP in user_permissions even with cache enabled
kangalio Dec 5, 2022
556c04e
Merge branch 'develop' of https://github.com/serenity-rs/poise into d…
kangalio Dec 5, 2022
5c93807
Update rustdoc-scrape-examples invocation
kangalio Dec 5, 2022
391fd3c
Bump to 0.5.1
kangalio Dec 5, 2022
36b3340
Update Cargo.lock
kangalio Dec 6, 2022
32786b2
Impl SlashArgument instead of SlashArgumentHack
kangalio Dec 12, 2022
7e7224b
Fix sneaky bug
kangalio Dec 16, 2022
35a8209
Add track_deletion
kangalio Dec 16, 2022
9cb5a77
Make builtins::servers aware of teams. (#133)
NotNorom Dec 15, 2022
c8b1497
Add all Context's methods to Prefix/ApplicationContext
kangalio Dec 16, 2022
b3e8c53
Increase MSRV to 1.60.0 due to time crate
kangalio Dec 16, 2022
e11b366
Update CI badge in README
kangalio Dec 16, 2022
aba9c83
Bump to 0.5.2
kangalio Dec 16, 2022
f542d3b
Add missing `Detailed changelog`'s in CHANGELOG
kangalio Dec 16, 2022
2ab3662
Add paginate
kangalio Dec 27, 2022
0a03fb9
Always print Command errors to console also
kangalio Jan 9, 2023
87f5c31
Feature guard pagination example (#138)
GnomedDev Jan 3, 2023
9896ac4
Print login message in framework_usage
kangalio Feb 28, 2023
25fb3dc
Add missing commas in macros for localizations (#143)
max-m Feb 23, 2023
b10707d
Document default_member_permissions
kangalio Apr 1, 2023
9803c6b
Add EventWrapper example
kangalio Apr 1, 2023
1448eed
Add missing events to EventWrapper (#144)
whitbur Apr 1, 2023
2fa41b6
Add unit test example
kangalio Apr 8, 2023
bf01579
Update links in README.md (kangalioo -> serenity-rs)
kangalio Apr 9, 2023
1c7a5a7
Add panic handler (#140)
HigherOrderLogic Apr 19, 2023
4874056
Update kangalioo -> serenity-rs and fix typos
kangalio Apr 19, 2023
bfc77ee
Split develop branch into current and next
kangalio Apr 20, 2023
2d3be6b
Bump to 0.5.3
kangalio Apr 20, 2023
a21dd44
Fix FrameworkContext::user_data being async (#137)
GnomedDev Jan 3, 2023
4cdae8d
Make FrameworkContext::user_data async again
kangalio Apr 20, 2023
438d5ec
Optionally display subcommands in help menu
kangalio Apr 8, 2023
f14e90b
Amend to previous commit: clippy allow
kangalio Apr 23, 2023
f408cbf
Remove redundant import in testing crate
kangalio Apr 23, 2023
7a29dfe
Change CommandPanic payload type to Option<String>
kangalio Apr 23, 2023
77e4d3a
Bump to 0.5.4
kangalio Apr 23, 2023
116b8bb
Support #[min_length] #[max_length]
kangalio Apr 27, 2023
e5ffe6b
Bump to 0.5.5
kangalio Apr 27, 2023
bc81ff4
Merge "Amend to previous commit: clippy allow" into next
kangalio May 2, 2023
4f6b7f6
Make a bunch of structs non_exhaustive...
kangalio May 2, 2023
d52919c
Forgot enums (while applying non_exhaustive)
kangalio May 2, 2023
3384bc4
Test RoleParseError downcasting
kangalio May 3, 2023
6f7d342
Rework of builtins::help() (#161)
docwilco May 5, 2023
62925a5
Add HelpConfiguration:include_description
kangalio May 6, 2023
77bfc4c
Fix cargo test
kangalio May 6, 2023
7c22a89
Change Command field types
kangalio May 6, 2023
7b61560
Deduplicate CreateReply creation code
kangalio May 6, 2023
eebbaca
Remove outdated TODO
kangalio May 6, 2023
f2c3992
Merge branch 'current' into next
kangalio May 6, 2023
5ed5668
Remove pub(super) and make private instead
kangalio May 6, 2023
b16b52c
Remove unused function warning when testing
kangalio May 6, 2023
807bcb5
Okay apparently Discord needs "es-ES" instead of "es" now
kangalio May 6, 2023
615791a
Merge branch 'current' into next
kangalio May 6, 2023
8471b6e
Add ChoiceParameter trait instead of direct impls
kangalio May 6, 2023
50eeacb
fix: typo (#165)
sadorowo May 6, 2023
de31372
Support pattern parameters in #[command]
kangalio May 6, 2023
f53a26b
Fix with simd-json (amend to 8471b6e358ae5ff0369fc408159f1188352790c1)
kangalio May 6, 2023
2f2665f
Merge branch 'current' of https://github.com/serenity-rs/poise into c…
kangalio May 6, 2023
d4df6e9
Merge branch 'current' into next
kangalio May 6, 2023
d5a0aa4
Restructure `#[command]` docs into sub headings
kangalio May 8, 2023
de00d2c
Refinements to builtins::help (#167)
docwilco May 9, 2023
127c2b0
Add Infallible to __NonExhaustive enum variants
kangalio May 9, 2023
3eef3f4
Restructure examples
kangalio May 10, 2023
a72b3f3
Add Context::{cache, http} shorthands
kangalio May 10, 2023
ae180fd
Use eprintln in default Setup error handler
kangalio May 10, 2023
7866109
feature: subcommmand_required parameter (#170)
sadorowo May 10, 2023
c3258e0
Make FrameworkError and SlashArgError variants non_exhaustive
kangalio May 10, 2023
0f6e83d
Merge branch 'current' into next
kangalio May 10, 2023
5d02b87
Added Support for Opening Modals as an MCI Response (#173)
G0ldenSp00n Jun 26, 2023
6cc521a
Add CooldownContext struct to make Cooldowns usable in more situation…
scottbot95 Jul 10, 2023
6b54fac
Convert Cooldowns to use HashMap instead of OrderedMap for better sca…
scottbot95 Jul 10, 2023
a033d14
Fix failing CI build (#181)
scottbot95 Jul 16, 2023
2f9b95d
add `reply()` for `poise::context` (#183)
B-2U Jul 29, 2023
f9fce51
Two dependency bumps (#186)
OverzealousLotus Jul 29, 2023
c9c0373
Allow passing cooldown config on demand
kangalio Jul 31, 2023
8ee1016
Merge remote-tracking branch 'upstream/current' into next
scottbot95 Aug 10, 2023
dca1ba6
Remove old `CooldownTracker` methods and migrate internals
scottbot95 Aug 10, 2023
8e15570
Bump MSRV to 1.63
scottbot95 Aug 12, 2023
7c1899b
Merge branch 'next' into serenity-next
scottbot95 Aug 12, 2023
134ccd2
Remove uneccessary NonZeroU64 usage
scottbot95 Aug 12, 2023
5583238
Fix copy paste typo in pagination button IDs
kangalio Sep 19, 2023
ad0fea3
Fix empty initial message in pagination
kangalio Sep 19, 2023
f876943
Merge branch 'serenity-next' into HEAD
kangalio Sep 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- please base the PR on the develop branch if possible 😇 -->
<!-- base the PR on the current branch, if it has no breaking changes, and on the next branch, if it does -->
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

include:
- name: MSRV
toolchain: 1.68.0
toolchain: 1.71.0
# don't do doctests because they rely on new features for brevity
command: cargo test --all-features --lib --tests

Expand All @@ -39,7 +39,7 @@ jobs:
- name: no features
# don't test examples because they need collector feature
command: cargo test --no-default-features --features serenity/rustls_backend --lib --tests

- name: all features + simd_json
command: cargo test --all-features --features serenity/simd_json --lib --tests --examples
rustflags: -C target-cpu=haswell # needed for simd_json
Expand Down Expand Up @@ -103,16 +103,16 @@ jobs:
RUSTFLAGS: -C target-cpu=haswell # for simd-json
RUSTDOCFLAGS: --cfg doc_nightly -D warnings

# If on develop branch (as opposed to PR or whatever), publish docs to github pages
# If on current/next branch (as opposed to PR or whatever), publish docs to github pages
- name: Move files
if: github.ref == 'refs/heads/develop'
if: github.ref == 'refs/heads/current' || github.ref == 'refs/heads/next'
shell: bash
run: |
DIR=${GITHUB_REF#refs/heads/}
mkdir -p ./docs/$DIR
mv ./target/doc/* ./docs/$DIR/
- name: Deploy docs
if: github.ref == 'refs/heads/develop'
if: github.ref == 'refs/heads/current' || github.ref == 'refs/heads/next'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
83 changes: 83 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,86 @@
# 0.5.5

New features:
- Added `#[min_length]` and `#[max_length]` support for slash command string parameters

Detailed changelog: https://github.com/kangalioo/poise/compare/v0.5.4...v0.5.5

# 0.5.4

API updates:
- The `payload` field of `FrameworkError::CommandPanic` has been changed from `Box<dyn Any + Send>` to `Option<String>`
- This is technically a breaking change
- However, the newly introduced `payload` field in 0.5.3 made `FrameworkError` accidentally not Sync anymore
- And `FrameworkError::CommandPanic` has only been introduced a few days ago in 0.5.3
- Therefore, I think it's ok to release this as a patch release to reverse the accidental breaking change from 0.5.3

Detailed changelog: https://github.com/kangalioo/poise/compare/v0.5.3...v0.5.4

# 0.5.3

New features:
- Added `builtins::paginate()` as an example implementation of pagination
- Added missing events in `EventWrapper` (#144)
- Added `FrameworkError::CommandPanic` to allow custom handling of panics (#140)
- `builtins::on_error` responds with an "Internal error" embed when encountering `CommandPanic`

Behavior changes:
- `builtins::on_error` now prints `FrameworkError::Command` not just in Discord chat, but in console as well
- because responding in Discord sometimes doesn't work, see 0a03fb905ca0bc3b2ee0701fe35d3c89ecf5a654
- Fixed a compile error when `name_localized` or `description_localized` are used multiple times (#143)

Detailed changelog: https://github.com/kangalioo/poise/compare/v0.5.2...v0.5.3

# 0.5.2

New features:
- Added `track_deletion` feature to commands
- Added all of `Context`'s methods to `PrefixContext` and `ApplicationContext`

Behavior changes:
- Editing commands not marked track_edits no longer re-runs the command
- `builtins::servers` now shows hidden statistics for the entire bot team, not just owner

Detailed changelog: https://github.com/kangalioo/poise/compare/v0.5.1...v0.5.2

# 0.5.1

New features:
- Added `FrameworkOptions::skip_checks_for_owner`

Behavior changes:
- `execute_modal` doesn't panic anymore when the timeout is reached
- Checking user permissions properly falls back to HTTP when cache is enabled but empty

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

# 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
Loading