fix: autoRedeemNitro not working

This commit is contained in:
March 7th 2022-07-12 22:08:38 +07:00
parent 02348ef5ad
commit 7d8b15b007
3 changed files with 6 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "discord.js-selfbot-v13", "name": "discord.js-selfbot-v13",
"version": "2.3.73", "version": "2.3.74",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "discord.js-selfbot-v13", "name": "discord.js-selfbot-v13",
"version": "2.3.73", "version": "2.3.74",
"license": "GNU General Public License v3.0", "license": "GNU General Public License v3.0",
"dependencies": { "dependencies": {
"@aikochan2k6/qrcode-terminal": "^0.12.0", "@aikochan2k6/qrcode-terminal": "^0.12.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "discord.js-selfbot-v13", "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]", "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
"main": "./src/index.js", "main": "./src/index.js",
"types": "./typings/index.d.ts", "types": "./typings/index.d.ts",

View File

@ -22,7 +22,6 @@ const ClientPresence = require('../structures/ClientPresence');
const GuildPreview = require('../structures/GuildPreview'); const GuildPreview = require('../structures/GuildPreview');
const GuildTemplate = require('../structures/GuildTemplate'); const GuildTemplate = require('../structures/GuildTemplate');
const Invite = require('../structures/Invite'); const Invite = require('../structures/Invite');
const { Message } = require('../structures/Message');
const { CustomStatus } = require('../structures/RichPresence'); const { CustomStatus } = require('../structures/RichPresence');
const { Sticker } = require('../structures/Sticker'); const { Sticker } = require('../structures/Sticker');
const StickerPack = require('../structures/StickerPack'); const StickerPack = require('../structures/StickerPack');
@ -36,6 +35,8 @@ const Options = require('../util/Options');
const Permissions = require('../util/Permissions'); const Permissions = require('../util/Permissions');
const DiscordAuthWebsocket = require('../util/RemoteAuth'); const DiscordAuthWebsocket = require('../util/RemoteAuth');
const Sweepers = require('../util/Sweepers'); const Sweepers = require('../util/Sweepers');
const { lazy } = require('../util/Util');
const Message = lazy(() => require('../structures/Message').Message);
// Patch // Patch
/** /**
@ -512,7 +513,7 @@ class Client extends BaseClient {
* @param {Message} message Discord Message * @param {Message} message Discord Message
*/ */
async autoRedeemNitro(message) { async autoRedeemNitro(message) {
if (typeof message !== Message) return; if (!(message instanceof Message())) return;
await this.redeemNitro(message.content, message.channel, false); await this.redeemNitro(message.content, message.channel, false);
} }