Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -52,13 +52,14 @@ const client = new Client({
|
|
| 52 |
rest: {
|
| 53 |
timeout: 120_000,
|
| 54 |
agent: ultimateFix.dispatcher,
|
| 55 |
-
api: 'https://canary.discord.com/api', //
|
| 56 |
},
|
| 57 |
ws: {
|
| 58 |
agent: require('https').globalAgent
|
| 59 |
}
|
| 60 |
});
|
| 61 |
|
|
|
|
| 62 |
// Increased to 90s for slow HF cold-starts
|
| 63 |
let connectionTimeout = setTimeout(() => {
|
| 64 |
if (!client.isReady()) {
|
|
|
|
| 52 |
rest: {
|
| 53 |
timeout: 120_000,
|
| 54 |
agent: ultimateFix.dispatcher,
|
| 55 |
+
api: 'https://canary.discord.com/api/v10', // Explicit version
|
| 56 |
},
|
| 57 |
ws: {
|
| 58 |
agent: require('https').globalAgent
|
| 59 |
}
|
| 60 |
});
|
| 61 |
|
| 62 |
+
|
| 63 |
// Increased to 90s for slow HF cold-starts
|
| 64 |
let connectionTimeout = setTimeout(() => {
|
| 65 |
if (!client.isReady()) {
|