We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To Reproduce:
String token = "xxx"; ReactorResource resources = ReactorResources.builder().httpClient(...).build(); // customize HTTP client (e.g. proxy) DiscordClient client = DiscordClientBuilder.create(token).setReactorResources(resources).build(); client.withGateway(xxx); // listen events
Expected Behavior: GatewayDiscordClient defaults to using the parent ReactorResources inherited from DiscordClient.
GatewayDiscordClient
ReactorResources
DiscordClient
Actual Behavior: GatewayBootstrap will rebuild HTTP client: https://github.com/Discord4J/Discord4J/blob/dfcc9fb/core/src/main/java/discord4j/core/shard/GatewayBootstrap.java#L884-L892. This will lost custom configuration.
GatewayBootstrap
Version: 3.2.3
Other: In this case, I have to provide my GatewayReactorResources to GatewayBootstrap:
GatewayReactorResources
gatewayBootstrap.setGatewayReactorResources(reactorResources -> GatewayReactorResources.builder(client.getCoreResources().getReactorResources()).build())
to avoid the rebuild.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To Reproduce:
Expected Behavior:
GatewayDiscordClient
defaults to using the parentReactorResources
inherited fromDiscordClient
.Actual Behavior:
GatewayBootstrap
will rebuild HTTP client: https://github.com/Discord4J/Discord4J/blob/dfcc9fb/core/src/main/java/discord4j/core/shard/GatewayBootstrap.java#L884-L892.This will lost custom configuration.
Version:
3.2.3
Other:
In this case, I have to provide my
GatewayReactorResources
toGatewayBootstrap
:to avoid the rebuild.
The text was updated successfully, but these errors were encountered: