mirror of
https://gitlab.edgegamers.io/discord/ds-bot.git
synced 2025-12-06 00:22:41 -08:00
Fix lint
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { MAUL, MaulAPI } from "@edgmrs/maul";
|
||||
import { Client, Partials } from "discord.js";
|
||||
import { Client } from "discord.js";
|
||||
import { DSBot } from "./api/DSBot";
|
||||
import { AbstractModuleManager } from "./api/ModuleManager";
|
||||
import { BotConfig } from "./api/data/BotConfig";
|
||||
@@ -9,10 +9,10 @@ import { TokenEntry } from "./data/configs/Token";
|
||||
import { CommandManager } from "./modules/Commands";
|
||||
import { DSVoice } from "./modules/DSVoice";
|
||||
import { ModuleManager } from "./modules/Manager";
|
||||
import { PermissionsManager } from "./modules/PermissionsManager";
|
||||
import { ReactRoles } from "./modules/ReactRoles";
|
||||
import { PingCommand } from "./modules/commands/PingCommand";
|
||||
import { VoiceCommand } from "./modules/commands/VoiceCommand";
|
||||
import { PermissionsManager } from "./modules/PermissionsManager";
|
||||
|
||||
export class Bot implements DSBot {
|
||||
maul: MaulAPI | undefined;
|
||||
@@ -29,9 +29,7 @@ export class Bot implements DSBot {
|
||||
const tokenEntry = this.config.registerEntry(new TokenEntry());
|
||||
const maulEntry = this.config.registerEntry(new MaulEntry());
|
||||
|
||||
this.client = new Client({
|
||||
intents: ["Guilds", "GuildMessageReactions", "GuildVoiceStates", "DirectMessages"]
|
||||
});
|
||||
this.client = new Client({ intents: ["Guilds", "GuildMessageReactions", "GuildVoiceStates", "DirectMessages"] });
|
||||
this.config.load().then(() => {
|
||||
this.config.getValue(tokenEntry).then(token => {
|
||||
this.client.login(token as string);
|
||||
|
||||
Reference in New Issue
Block a user