Skip to content

Commit

Permalink
Fixed sticker spoof with Nitro Classic. Closes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
cafeed28 committed Jun 16, 2023
1 parent 208619d commit 0432b6f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"discordID": "942752356595023874",
"github": "cafeed28"
},
"version": "2.1.5",
"version": "2.1.6",
"updater": {
"type": "store",
"id": "com.cafeed28.NitroSpoof"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 0432b6f

Please sign in to comment.