From 75295b783190620882e3cfeab78fc22ce1b2a4e6 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Tue, 23 Jan 2024 21:19:22 +0700 Subject: [PATCH] Update Client.js --- src/client/Client.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/Client.js b/src/client/Client.js index 876ecfb..3b3ca32 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -31,6 +31,7 @@ const Webhook = require('../structures/Webhook'); const Widget = require('../structures/Widget'); const { Events, Status } = require('../util/Constants'); const DataResolver = require('../util/DataResolver'); +const Intents = require('../util/Intents'); const Permissions = require('../util/Permissions'); const DiscordAuthWebsocket = require('../util/RemoteAuth'); const Sweepers = require('../util/Sweepers'); @@ -663,6 +664,10 @@ class Client extends BaseClient { ) { throw new TypeError('CLIENT_INVALID_OPTION', 'rejectOnRateLimit', 'an array or a function'); } + // Hardcode + this.options.shardCount = 1; + this.options.shards = [0]; + this.options.intents = Intents.ALL; } }