🎨 move command collection to index

This commit is contained in:
Axel Olausson Holtenäs 2022-07-05 01:41:30 +02:00
parent 77daf24f6d
commit 1790ed09c3
No known key found for this signature in database
GPG key ID: 7BF6826B76382CBA

View file

@ -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