MinnDevelopment / discord-webhooks

Provides easy to use bindings for the Discord Webhook API
Apache License 2.0
180 stars 34 forks source link

Issue with discord webhook proxy services #65

Closed caoli5288 closed 2 years ago

caoli5288 commented 2 years ago

Hard coded discord.com in WebhookClient, which results in not supporting any third-party services like https://hooks.hyra.io/ or any alternatives.

Please fix it, it's important in some places. :-)

MinnDevelopment commented 2 years ago

You don't need a rate-limit proxy for this library. It already handles them for you.

caoli5288 commented 2 years ago

Because of my ISP does not allow direct access to discord, not for ate-limit proxy

MinnDevelopment commented 2 years ago

Then you should use an HTTP CONNECT proxy, this can be done by setting a custom OkHttpClient with WebhookClientBuilder#seHttpClient.

See: https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/-builder/proxy/