From 0432b6f3e3c9aaf31eadc062075b634429875b0c Mon Sep 17 00:00:00 2001 From: cafeed28 Date: Sat, 17 Jun 2023 01:44:24 +0500 Subject: [PATCH] Fixed sticker spoof with Nitro Classic. Closes #14 --- manifest.json | 2 +- package.json | 2 +- src/sticker.ts | 2 +- src/types.ts | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 963a8f0..bd42367 100644 --- a/manifest.json +++ b/manifest.json @@ -7,7 +7,7 @@ "discordID": "942752356595023874", "github": "cafeed28" }, - "version": "2.1.5", + "version": "2.1.6", "updater": { "type": "store", "id": "com.cafeed28.NitroSpoof" diff --git a/package.json b/package.json index ce762d1..8b92b1f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "replugged-nitrospoof", - "version": "2.1.5", + "version": "2.1.6", "description": "Use some Nitro features without wasting your money!", "engines": { "node": ">=14.0.0" diff --git a/src/sticker.ts b/src/sticker.ts index d9129b4..5c464b4 100644 --- a/src/sticker.ts +++ b/src/sticker.ts @@ -33,7 +33,7 @@ function isStickerAvailable(sticker: Sticker): boolean { if (!sticker.available) return false; // User has Nitro - if (userPremiumType != PremiumType.NONE) return true; + if (userPremiumType != PremiumType.NONE && userPremiumType != PremiumType.CLASSIC) return true; // Note: getGuildId will return null if user is in DMs if (sticker.guild_id == common.guilds.getGuildId()) return true; diff --git a/src/types.ts b/src/types.ts index 9d3528f..b94bb32 100644 --- a/src/types.ts +++ b/src/types.ts @@ -12,9 +12,9 @@ export type Config = { export enum PremiumType { NONE = 0, - TIER_1, - TIER_2, - TIER_3, + CLASSIC, + NITRO, + BASIC, } /* eslint-disable @typescript-eslint/naming-convention */