Skip to content

Fix/sharded shared rest#1703

Merged
akiraveliara merged 2 commits intomasterfrom
fix/ShardedSharedRest
Dec 15, 2023
Merged

Fix/sharded shared rest#1703
akiraveliara merged 2 commits intomasterfrom
fix/ShardedSharedRest

Conversation

@Plerx2493
Copy link
Member

Summary

At the moment each DiscordClient in a sharded client has their own restclient which will result in incorrect ratelimiting. This pr adds a new internal constructor to the discordclient which allows to pass a Restclient for the DiscordApiClient

@Plerx2493 Plerx2493 added the core label Dec 14, 2023
@Plerx2493 Plerx2493 added this to the v5.0 milestone Dec 14, 2023
@Plerx2493
Copy link
Member Author

its not testet atm and im not sure how to test it correctly

@akiraveliara akiraveliara merged commit 5f0ad39 into master Dec 15, 2023
@Plerx2493 Plerx2493 deleted the fix/ShardedSharedRest branch December 15, 2023 21:00
OoLunar pushed a commit that referenced this pull request Oct 3, 2024
* Pass shared RestClient to all DiscordClient in DiscordShardedClient

* erm
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.

2 participants