Brozy123 commited on
Commit
7bfa37f
·
verified ·
1 Parent(s): 07419e1

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -1
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', // Use canary endpoint to bypass blocks
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()) {