Skip to content

Update twilight-gateway requirement from 0.17.1 to 0.18.0 - #42

Closed
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/cargo/twilight-gateway-0.18.0
Closed

dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/cargo/twilight-gateway-0.18.0

Conversation

@dependabot

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

Copy link
Copy Markdown

Updates the requirements on twilight-gateway to permit the latest version.

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)
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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [twilight-gateway](https://github.com/twilight-rs/twilight) to permit the latest version.
- [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)

---
updated-dependencies:
- dependency-name: twilight-gateway
  dependency-version: 0.18.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 8, 2026
@banocean

banocean commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

It will be handled in #43 along other twilight crates

@banocean banocean closed this Nov 8, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 8, 2026

Copy link
Copy Markdown
Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/cargo/twilight-gateway-0.18.0 branch November 8, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant