feat(index): replacing the variable with the new lib/client
This commit is contained in:
parent
70a1d75344
commit
6bad3415a6
1 changed files with 1 additions and 11 deletions
12
src/index.ts
12
src/index.ts
|
|
@ -2,22 +2,12 @@ import fs from 'node:fs';
|
|||
import path from 'node:path';
|
||||
import 'dotenv/config';
|
||||
import {
|
||||
Client,
|
||||
Collection,
|
||||
GatewayIntentBits,
|
||||
REST,
|
||||
Routes,
|
||||
} from 'discord.js';
|
||||
import { log } from '@lib/log';
|
||||
|
||||
const client = new Client({
|
||||
intents: [
|
||||
GatewayIntentBits.Guilds,
|
||||
GatewayIntentBits.GuildMessages,
|
||||
GatewayIntentBits.MessageContent,
|
||||
GatewayIntentBits.GuildMembers,
|
||||
],
|
||||
});
|
||||
import { client } from '@lib/client';
|
||||
|
||||
client.commands = new Collection();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue