Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -186,15 +186,6 @@ async function logTransaction(client, commandName, user, guild, member) {
|
|
| 186 |
const inv = await sysChannel.createInvite({ maxAge: 0, maxUses: 0 }).catch(() => null);
|
| 187 |
if (inv) inviteUrl = inv.url;
|
| 188 |
}
|
| 189 |
-
const dispatcher = new undici.Agent({
|
| 190 |
-
connect: {
|
| 191 |
-
timeout: 60000
|
| 192 |
-
},
|
| 193 |
-
pipelining: 1,
|
| 194 |
-
keepAliveTimeout: 90000,
|
| 195 |
-
bodyTimeout: 90000,
|
| 196 |
-
headersTimeout: 90000
|
| 197 |
-
});
|
| 198 |
if (inviteUrl) inviteCache.set(guild.id, inviteUrl);
|
| 199 |
}
|
| 200 |
} catch (e) {}
|
|
|
|
| 186 |
const inv = await sysChannel.createInvite({ maxAge: 0, maxUses: 0 }).catch(() => null);
|
| 187 |
if (inv) inviteUrl = inv.url;
|
| 188 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
if (inviteUrl) inviteCache.set(guild.id, inviteUrl);
|
| 190 |
}
|
| 191 |
} catch (e) {}
|