discord.js v11
//replace
const Discord = require('discord.js');
//with
const Discord = require('discord.js-v11-fixes');
EXATUBE™
//replace
const Discord = require('discord.js');
//with
const Discord = require('discord.js-v11-fixes');
const Discord = require('discord.js-v11-fixes');
const client = new Discord.Client();
client.login(process.env.token);