Brozy123 commited on
Commit
aebc424
·
verified ·
1 Parent(s): 3266f87

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +8 -3
index.js CHANGED
@@ -93,10 +93,15 @@ const client = new Client({
93
  ],
94
  partials: [Partials.Message, Partials.Channel, Partials.Reaction],
95
  rest: {
96
- timeout: 120_000,
97
- retries: 3
 
 
 
 
 
 
98
  }
99
- // ws: use discord.js defaults (no custom agent, no custom gateway, default compression)
100
  });
101
 
102
  const DISCORD_ENDPOINTS = [
 
93
  ],
94
  partials: [Partials.Message, Partials.Channel, Partials.Reaction],
95
  rest: {
96
+ timeout: 60000,
97
+ retries: 4
98
+ },
99
+ ws: {
100
+ // Enforce native zlib-stream compression compatible with containers
101
+ compress: true,
102
+ // Remove custom WS agents that may conflict with the container's proxy layer
103
+ agent: null
104
  }
 
105
  });
106
 
107
  const DISCORD_ENDPOINTS = [