This repository was archived by the owner on Jan 2, 2026. It is now read-only.
Merged
Conversation
note: not added to the readme yet, so people don't try it on older versions
- allows settings client properties that are used in Instance requests - these are also passed down to new ChorusUsers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a builder pattern for
Instance-InstanceBuilder- which can be used to more precisely specify options before creating theInstance.Adds the options to:
with_software,with_gateway_options,.default_gateway_events,with_client_propertiesandskip_fetching_ratelimits,skip_fetching_general_info&skip_optional_requestsReplaces
Instance::from_url_bundlewithInstanceBuilder::buildas the main Instance initialization methodChanges
Instance::from_url_bundleandInstance::newto no longer haveGatewayOptionsas their 2nd argument (now you can specify that inInstanceBuilder, and that argument really had no place there.)To update, change:
Instance::new("example.com", None)toInstance::new("example.com")or toInstanceBuilder::new("example.com".to_string()).build()Instance::new("example.com", Some(options))toInstanceBuilder::new("example.com".to_string()).with_gateway_options(options).build()Instance::from_url_bundle(urls, None)toInstance::from_url_bundle(urls)or toInstanceBuilder::from_url_bundle(urls).build()Instance::from_url_bundle(urls, Some(options))toInstanceBuilder::from_url_bundle(urls).with_gateway_options(options).build()