mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Fix webhook messages being parsed unnecessarily (#4346)
This wasted CPU time parsing responses from Discord that we will never use, plus caused problems when parsing webhooks that our library couldn't parse correctly (MinnDevelopment/discord-webhooks#36).
This commit is contained in:
parent
eed73e3157
commit
1556b911b2
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ public final class DiscordUtil {
|
|||
*/
|
||||
public static WebhookClient getWebhookClient(long id, String token, OkHttpClient client) {
|
||||
return new WebhookClientBuilder(id, token)
|
||||
.setWait(false)
|
||||
.setAllowedMentions(AllowedMentions.none())
|
||||
.setHttpClient(client)
|
||||
.setDaemon(true)
|
||||
|
|
Loading…
Reference in a new issue