Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -31,9 +31,9 @@ const client = new Client({
|
|
| 31 |
],
|
| 32 |
partials: [Partials.Message, Partials.Channel, Partials.Reaction],
|
| 33 |
rest: {
|
| 34 |
-
api: 'https://
|
| 35 |
version: '10',
|
| 36 |
-
timeout:
|
| 37 |
},
|
| 38 |
ws: {
|
| 39 |
connectTimeout: 60000
|
|
@@ -52,7 +52,7 @@ const TOKEN = RAW_TOKEN ? RAW_TOKEN.trim().replace(/['"]+/g, '').replace(/[\u200
|
|
| 52 |
if (!TOKEN) {
|
| 53 |
console.error("[!] CRITICAL: No Discord token found in environment variables.");
|
| 54 |
} else {
|
| 55 |
-
console.log(
|
| 56 |
}
|
| 57 |
|
| 58 |
// --- 2. COMMAND REGISTRATION ---
|
|
|
|
| 31 |
],
|
| 32 |
partials: [Partials.Message, Partials.Channel, Partials.Reaction],
|
| 33 |
rest: {
|
| 34 |
+
api: 'https://canary.discord.com/api',
|
| 35 |
version: '10',
|
| 36 |
+
timeout: 60000
|
| 37 |
},
|
| 38 |
ws: {
|
| 39 |
connectTimeout: 60000
|
|
|
|
| 52 |
if (!TOKEN) {
|
| 53 |
console.error("[!] CRITICAL: No Discord token found in environment variables.");
|
| 54 |
} else {
|
| 55 |
+
console.log(`[*] Token Found (Length: ${TOKEN.length}, Pattern: ${TOKEN.substring(0, 4)}...${TOKEN.substring(TOKEN.length - 4)})`);
|
| 56 |
}
|
| 57 |
|
| 58 |
// --- 2. COMMAND REGISTRATION ---
|