我收到一个错误消息说我的类不是JS中的构造函数

这是我的代码:

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ezcord_1 = require("ezcord");
const bot = new ezcord_1.EzcordClient('<token removed>', '!');
bot.connect();
bot.on('ready', () => {
    bot.setStatus('you', {
        statusType: 'WATCHING'
    });
});
bot.on('command', (cmd) => {
    if (cmd.cmd === 'ping') {
        cmd.respond('Pong!');
    }
});

这是我的课:

class EzcordClient extends EventEmitter {
    /**
     * Create a bot.
     * @constructor
     * @param {String} token Your bot's token.
     * @param {String} prefix Your bot's prefix.
     */
    constructor(token, prefix) {
        const bot = new Client()
...

这是我得到的错误: TypeError:ezcord_1.EzcordClient不是构造函数 即使定义了Ezcord,并且Visual Studio代码未显示任何错误,它仍然不起作用(这是我的模块)。

Edit: The class is not undefined.