How are Discord.Collection()s handled with v14?
This is my index.js: https://srcb.in/Vl8vb6Crkg
It is erroring on
client.commands = new Discord.Collection();
so, how do I do collections now?7 Replies
how did u import Discord
const { Discord, Client, GatewayIntentBits, Partials } = require('discord.js');
i think its deconstructed
yeah i am doesnt export Discord
Ah, ok
do it like const Discord = require("discord.js")
of just deconstruct collection from it
Now my bot comes online with no errors and the prefix is defined BUT nothing logs via
messageCreate.js
No errors, it is like it doesn't listen.You are most likely missing the MessageContent intent.