From 323ead79c3e30afa6f7dc7c8e8b9fe3242fb6eb0 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 24 Aug 2021 15:57:12 +0300 Subject: [PATCH] cleanup & other bs --- options.json | 2 +- src/structure/DiscordClient.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/options.json b/options.json index 654c996..dd8df36 100644 --- a/options.json +++ b/options.json @@ -4,7 +4,7 @@ "developers": ["132620781791346688", "132777808362471424"], "clientOptions": { "intents": [ - "GUILD", + "GUILDS", "GUILD_MEMBERS", "GUILD_MESSAGES" ] diff --git a/src/structure/DiscordClient.js b/src/structure/DiscordClient.js index aadd329..88314ae 100644 --- a/src/structure/DiscordClient.js +++ b/src/structure/DiscordClient.js @@ -1,4 +1,4 @@ -const { Client, Intents } = require('discord.js'); +const { Client } = require('discord.js'); const { Logger, Intercom, EventHooker, LocaleLoader, Registry, Dispatcher, Resolver } = require('./client/'); const { Observer, Command } = require('./interfaces/'); @@ -46,7 +46,7 @@ class DiscordClient extends Client { this.logger.info(`Built client in ${Date.now()-beforeTime}ms.`); - await super.login(process.env.DISCORD_TOKEN); + await super.login(); // process.env.DISCORD_TOKEN this.emit('built'); this._built = true;