Skip to content

Fixed generate-config.js to use discord 14 #85

@CliffordTBRC

Description

@CliffordTBRC

const Discord = require('discord.js');

remove and add const { Client, GatewayIntentBits } = require('discord.js');
this is required for discord.js 14 support

let client = new Discord.Client();

remove and add this

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions