Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -93,10 +93,15 @@ const client = new Client({
|
|
| 93 |
],
|
| 94 |
partials: [Partials.Message, Partials.Channel, Partials.Reaction],
|
| 95 |
rest: {
|
| 96 |
-
timeout:
|
| 97 |
-
retries:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 = [
|