chore(client): remove deprecated environment loading check for Node.js 20.6+
This commit is contained in:
@@ -2,11 +2,6 @@ import { Client, GatewayIntentBits, Options, Partials } from 'discord.js';
|
||||
import { prisma, ensurePrismaConnection } from './database/prisma';
|
||||
import logger from './lib/logger';
|
||||
|
||||
// Verificar si process.loadEnvFile existe (Node.js 20.6+)
|
||||
if (typeof process.loadEnvFile === 'function') {
|
||||
process.loadEnvFile();
|
||||
}
|
||||
|
||||
class Amayo extends Client {
|
||||
public key: string;
|
||||
public prisma = prisma;
|
||||
|
||||
Reference in New Issue
Block a user