Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -55,11 +55,12 @@ const client = new Client({
|
|
| 55 |
rest: {
|
| 56 |
timeout: 120_000,
|
| 57 |
agent: ultimateFix.dispatcher,
|
|
|
|
| 58 |
},
|
| 59 |
ws: {
|
| 60 |
agent: require('https').globalAgent,
|
| 61 |
-
|
| 62 |
-
|
| 63 |
}
|
| 64 |
});
|
| 65 |
|
|
|
|
| 55 |
rest: {
|
| 56 |
timeout: 120_000,
|
| 57 |
agent: ultimateFix.dispatcher,
|
| 58 |
+
retries: 3
|
| 59 |
},
|
| 60 |
ws: {
|
| 61 |
agent: require('https').globalAgent,
|
| 62 |
+
gateway: (process.env.DISCORD_BASE_URL ? process.env.DISCORD_BASE_URL.replace('http', 'ws') : undefined),
|
| 63 |
+
compress: false // Disable compression for more stability over the proxy tunnel
|
| 64 |
}
|
| 65 |
});
|
| 66 |
|