Skip to content

Instantly share code, notes, and snippets.

View mkrasnitski's full-sized avatar

Michael Krasnitski mkrasnitski

View GitHub Profile
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 053dc7b102..ceb222bd75 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,28 @@
All notable changes to this project will be documented in this file.
This project mostly adheres to [Semantic Versioning][semver].
+## [0.11.7] - 2023-10-24
+
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 85a0877377..3895fcaf94 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -40,7 +40,7 @@ jobs:
- name: no cache
features: builder client framework gateway model http standard_framework utils rustls_backend
- name: simd-json
- features: default_no_backend rustls_backend simd-json
+ features: default_no_backend rustls_backend simd_json
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f6c5d1426b..8c5cc1c36e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -4,7 +4,7 @@ on: [push, pull_request]
env:
rust_min: 1.53.0
- rust_nightly: nightly-2022-06-23
+ rust_nightly: nightly-2022-08-11
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8c8b4fe584..053dc7b102 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,66 @@
All notable changes to this project will be documented in this file.
This project mostly adheres to [Semantic Versioning][semver].
+## [0.11.6] - 2023-06-30
+
diff --git a/command_attr/src/structures.rs b/command_attr/src/structures.rs
index d8eb02a77..b53156d92 100644
--- a/command_attr/src/structures.rs
+++ b/command_attr/src/structures.rs
@@ -299,35 +299,47 @@ impl Permissions {
"PRESET_GENERAL" => 0b0000_0110_0011_0111_1101_1100_0100_0001,
"PRESET_TEXT" => 0b0000_0000_0000_0111_1111_1100_0100_0000,
"PRESET_VOICE" => 0b0000_0011_1111_0000_0000_0000_0000_0000,
- "CREATE_INVITE" => 0b0000_0000_0000_0000_0000_0000_0000_0001,
- "KICK_MEMBERS" => 0b0000_0000_0000_0000_0000_0000_0000_0010,
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 29d03034e..fb629dcd9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -57,7 +57,7 @@ jobs:
steps:
- name: Checkout sources
- uses: actions/checkout@v2
+ uses: actions/checkout@v3

Builders

The closure-based API for constructing requests using the builder pattern has been ripped out and replaced. In place of closures, users must now pass in builder types directly. For example, in serenity 0.11, code like the following was very common:

let channel = guild
    .create_channel(&http, |c| c.name("my-test-channel").kind(ChannelType::Text))
    .await?;

Builders

The closure-based API for constructing requests using the builder pattern has been ripped out and replaced. In place of closures, users must now pass in builder types directly. For example, in serenity 0.11, code like the following was very common:

let channel = guild
    .create_channel(&http, |c| c.name("my-test-channel").kind(ChannelType::Text))
    .await?;
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0a0c7801c..a9eea4cb5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -240,6 +240,8 @@ jobs:
run: |
cargo doc --no-deps --features collector,voice,unstable_discord_api
cargo doc --no-deps -p command_attr
+ env:
+ RUSTDOCFLAGS: -D rustdoc::broken_intra_doc_links
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1a32747b3..4bfd50a54 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -217,6 +217,8 @@ jobs:
run: |
cargo doc --no-deps --features collector,voice,unstable_discord_api
cargo doc --no-deps -p command_attr
+ env:
+ RUSTDOCFLAGS: -D rustdoc::broken_intra_doc_links