From 1790ed09c359d2262967892dc1b2d726e3a9f630 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Tue, 5 Jul 2022 01:41:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20move=20command=20collection=20to?= =?UTF-8?q?=20index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 4327353..c3661d7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import { token, intents } from "./config/discord"; -import { Client } from "discord.js"; // discord.js +import { Client, Collection } from "discord.js"; // discord.js import * as managers from "./managers"; @@ -11,6 +11,9 @@ const main = async () => { intents, }); + // Create command collection + client.commands = new Collection(); + await managers.start(client); // Authorize with Discord's API