diff --git a/package-lock.json b/package-lock.json index c6ad7a2..3b38b1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "discord.js-selfbot-v13", - "version": "2.3.73", + "version": "2.3.74", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "discord.js-selfbot-v13", - "version": "2.3.73", + "version": "2.3.74", "license": "GNU General Public License v3.0", "dependencies": { "@aikochan2k6/qrcode-terminal": "^0.12.0", diff --git a/package.json b/package.json index b232f74..77f63e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord.js-selfbot-v13", - "version": "2.3.73", + "version": "2.3.74", "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]", "main": "./src/index.js", "types": "./typings/index.d.ts", diff --git a/src/client/Client.js b/src/client/Client.js index 68e323f..1650a9d 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -22,7 +22,6 @@ const ClientPresence = require('../structures/ClientPresence'); const GuildPreview = require('../structures/GuildPreview'); const GuildTemplate = require('../structures/GuildTemplate'); const Invite = require('../structures/Invite'); -const { Message } = require('../structures/Message'); const { CustomStatus } = require('../structures/RichPresence'); const { Sticker } = require('../structures/Sticker'); const StickerPack = require('../structures/StickerPack'); @@ -36,6 +35,8 @@ const Options = require('../util/Options'); const Permissions = require('../util/Permissions'); const DiscordAuthWebsocket = require('../util/RemoteAuth'); const Sweepers = require('../util/Sweepers'); +const { lazy } = require('../util/Util'); +const Message = lazy(() => require('../structures/Message').Message); // Patch /** @@ -512,7 +513,7 @@ class Client extends BaseClient { * @param {Message} message Discord Message */ async autoRedeemNitro(message) { - if (typeof message !== Message) return; + if (!(message instanceof Message())) return; await this.redeemNitro(message.content, message.channel, false); }