Skip to content

Commit 1556b91

Browse files
authored
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).
1 parent eed73e3 commit 1556b91

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

EssentialsDiscord/src/main/java/net/essentialsx/discord/util/DiscordUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ private DiscordUtil() {
5252
*/
5353
public static WebhookClient getWebhookClient(long id, String token, OkHttpClient client) {
5454
return new WebhookClientBuilder(id, token)
55+
.setWait(false)
5556
.setAllowedMentions(AllowedMentions.none())
5657
.setHttpClient(client)
5758
.setDaemon(true)

0 commit comments

Comments
 (0)