Skip to content

chore(deps): bump the twilight group with 2 updates - #193

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/twilight-5b89797da5
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/twilight-5b89797da5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 10, 2026

Copy link
Copy Markdown
Contributor

Bumps the twilight group with 2 updates: twilight-gateway and twilight-model.

Updates twilight-gateway from 0.17.1 to 0.18.0

Release notes

Sourced from twilight-gateway's releases.

twilight-gateway 0.18.0

Deprecations

Shard creation

The create_bucketand create_iterator were deprecated and will be removed in the next release. Users should instead use the twilight_gateway::bucket function to create buckets of shards. (#2538) This function takes a config directly and does not need a closure to finalize a ConfigBuilder into a config for shards.

use twilight_gateway::{Config, Shard};
fn shared(config: Config, shards: u32) -> impl Iterator<Item = Shard> {
unique(std::iter::repeat_n(config, shards as usize))
}
fn unique(iter: impl ExactSizeIterator<Item = Config>) -> impl Iterator<Item = Shard> {
let bucket_id = 0;
let buckets = 1;
let shards = iter.len() as u32;
iter.zip(twilight_gateway::bucket(bucket_id, buckets, shards))
.map(|(config, shard_id)| Shard::with_config(shard_id, config))
}

Determining shard counts

The twilight-http feature was deprecated and will be removed in the next release. Users should instead use the twilight-http crate directly to fetch the shard count from the discord api (Using Client::gateway().authed()), or set a count manually. (#2538)

Features

  • support monetization subscriptions (#2604)
  • Support channel obfuscation flag and setting gateway feature capabilities opt-ins (#2574)
  • improve bucket API (#2511)

Bug Fixes

  • delay shard connect for repeat attempts (#2505)
  • correct helpers' closure type (#2504)

Performance

  • hoist bucket iterator branch (#2537)

Documentation

  • show off complete bucket usage (#2514)
  • reduce main example (#2512)
  • improve lavalink example (#2497)
  • improve main examples (#2496)

twilight-gateway-queue 0.18.0

No user facing changes, only internal test upkeep

Commits
  • f3bf232 chore(all): Release 0.18.0
  • c8aaf8a chore(all): Prepare changelogs for 0.18 release (#2657)
  • 46460a8 feat(http): get sticker pack (#2646)
  • dfe66e7 feat(http): bulk guild ban support (#2645)
  • 1673808 feat(http): add shard for get current user guilds (#2650)
  • f24bd29 feat(model): add applicationflags::application_auto_moderation_rule_create_ba...
  • e917070 feat(model): add messageflags::has_snapshot (#2648)
  • ad0fe46 feat(model): add two new message type variants (#2649)
  • a802914 feat(http): Add support for working with Form buffers (#2532)
  • 6a540ec feat(http): add consume, get entitlement endpoints (#2603)
  • Additional commits viewable in compare view

Updates twilight-model from 0.17.1 to 0.18.0

Release notes

Sourced from twilight-model's releases.

twilight-model 0.18.0

Breaking Changes

These fixes are technically breaking changes, but the old implementation where fundamentally broken and resulted (de)serialization errors when used.

  • Return InteractionCallbackResponse instead of InteractionResponse from CreateResponseWithResponse (#2493)
  • make vanityurl::code nullable (#2609)
  • make webhook::channel_id nullable (#2606)

Features

  • add embed flags support (#2620)
  • add new variants to guildfeature (#2614)
  • add channel::total_message_sent (#2613)
  • guild scheduled event recurrence rule (#2618)
  • add channelflags::is_spoiler_channel (#2608)
  • support monetization subscriptions (#2604)
  • add new entitlement type variants (#2602)
  • add durable, consumable sku types (#2601)
  • add embed placeholder, content-type, flags (#2566)
  • add attachment upload file type (#2590)
  • add vr client status (#2582)
  • add missing properties to activity object (#2583)
  • add missing Attachment fields. (#2565)
  • add applicationflags::application_auto_moderation_rule_create_badge (#2647)
  • add app_permissions to resolved interaction channel (#2545)
  • add channel_type to message create event (#2533)
  • add messageflags::has_snapshot (#2648)
  • add missing AttachmentFlags values (#2544)
  • expose Interaction.attachment_size_limit (#2523)
  • add two new message type variants (#2649)
  • add checkbox components (#2516)
  • add enum variant from/tryfrom conversion (#2502)
  • improve bucket API (#2511)
  • add setting flags for forum threads (#2495)
  • Implement "Prune Requires Admin" guild feature (#2578)
  • Add Channel Obfuscation flag (#2574)

Bug Fixes

  • correct audit log member disconnect value (#2610)
  • rename user flag to certified moderator (#2607)
  • do not serialize content_type when not set (#2592)
  • Fix deserialization of modals with checkboxes (#2530)

Performance

  • monomorphize IdVisitor (#2559)
  • hoist bucket iterator branch (#2537)
Commits
  • f3bf232 chore(all): Release 0.18.0
  • c8aaf8a chore(all): Prepare changelogs for 0.18 release (#2657)
  • 46460a8 feat(http): get sticker pack (#2646)
  • dfe66e7 feat(http): bulk guild ban support (#2645)
  • 1673808 feat(http): add shard for get current user guilds (#2650)
  • f24bd29 feat(model): add applicationflags::application_auto_moderation_rule_create_ba...
  • e917070 feat(model): add messageflags::has_snapshot (#2648)
  • ad0fe46 feat(model): add two new message type variants (#2649)
  • a802914 feat(http): Add support for working with Form buffers (#2532)
  • 6a540ec feat(http): add consume, get entitlement endpoints (#2603)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the twilight group with 2 updates: [twilight-gateway](https://github.com/twilight-rs/twilight) and [twilight-model](https://github.com/twilight-rs/twilight).


Updates `twilight-gateway` from 0.17.1 to 0.18.0
- [Release notes](https://github.com/twilight-rs/twilight/releases)
- [Changelog](https://github.com/twilight-rs/twilight/blob/main/release.toml)
- [Commits](twilight-rs/twilight@twilight-gateway-0.17.1...twilight-gateway-0.18.0)

Updates `twilight-model` from 0.17.1 to 0.18.0
- [Release notes](https://github.com/twilight-rs/twilight/releases)
- [Changelog](https://github.com/twilight-rs/twilight/blob/main/release.toml)
- [Commits](twilight-rs/twilight@twilight-model-0.17.1...twilight-model-0.18.0)

---
updated-dependencies:
- dependency-name: twilight-gateway
  dependency-version: 0.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: twilight
- dependency-name: twilight-model
  dependency-version: 0.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: twilight
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: rust. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@wangzhizhou

Copy link
Copy Markdown
Contributor

并入 #194 处理。0.18 去掉了 MessageCreate 的 newtype + Box<Message> 包装(.0 私有),改成了带 Deref<Target = Message> 的普通结构体,所以本 PR 只改版本号必然编译失败。迁移已在 #194 完成。

顺带说明:这个 PR 正是新加的 twilight-* 分组生效的结果(twilight-gateway / twilight-model / 内部 twilight-http 同步 0.18),比之前只升一两个 crate 的做法正确。

auto-merge was automatically disabled November 10, 2026 22:12

Pull request was closed

@wangzhizhou
wangzhizhou deleted the dependabot/cargo/twilight-5b89797da5 branch November 11, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant