🎨 move command collection to index
This commit is contained in:
parent
77daf24f6d
commit
1790ed09c3
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { token, intents } from "./config/discord";
|
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";
|
import * as managers from "./managers";
|
||||||
|
|
||||||
|
@ -11,6 +11,9 @@ const main = async () => {
|
||||||
intents,
|
intents,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Create command collection
|
||||||
|
client.commands = new Collection();
|
||||||
|
|
||||||
await managers.start(client);
|
await managers.start(client);
|
||||||
|
|
||||||
// Authorize with Discord's API
|
// Authorize with Discord's API
|
||||||
|
|
Loading…
Add table
Reference in a new issue