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 path from 'node:path';
|
||||||
import 'dotenv/config';
|
import 'dotenv/config';
|
||||||
import {
|
import {
|
||||||
Client,
|
|
||||||
Collection,
|
Collection,
|
||||||
GatewayIntentBits,
|
|
||||||
REST,
|
REST,
|
||||||
Routes,
|
Routes,
|
||||||
} from 'discord.js';
|
} from 'discord.js';
|
||||||
import { log } from '@lib/log';
|
import { log } from '@lib/log';
|
||||||
|
import { client } from '@lib/client';
|
||||||
const client = new Client({
|
|
||||||
intents: [
|
|
||||||
GatewayIntentBits.Guilds,
|
|
||||||
GatewayIntentBits.GuildMessages,
|
|
||||||
GatewayIntentBits.MessageContent,
|
|
||||||
GatewayIntentBits.GuildMembers,
|
|
||||||
],
|
|
||||||
});
|
|
||||||
|
|
||||||
client.commands = new Collection();
|
client.commands = new Collection();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue