diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2022-11-08 13:51:09 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 17:51:09 +0100 |
commit | 3a3a52c4937898bcf674eb936651225d6c3df969 (patch) | |
tree | b5d861e3c0005e8ec2fc9c66d12dd1c3d932f338 /src/plugins/nitroBypass.ts | |
parent | 4e57ae66f149ca343933b2db23f7803d864f6e8d (diff) | |
download | Vencord-3a3a52c4937898bcf674eb936651225d6c3df969.tar.gz Vencord-3a3a52c4937898bcf674eb936651225d6c3df969.tar.bz2 Vencord-3a3a52c4937898bcf674eb936651225d6c3df969.zip |
fix(NitroBypass): Fix using stickers bypass with Nitro Classic (#196)
Diffstat (limited to 'src/plugins/nitroBypass.ts')
-rw-r--r-- | src/plugins/nitroBypass.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/nitroBypass.ts b/src/plugins/nitroBypass.ts index d2e1e10..be77a4c 100644 --- a/src/plugins/nitroBypass.ts +++ b/src/plugins/nitroBypass.ts @@ -145,7 +145,11 @@ export default definePlugin({ }, get canUseEmotes() { - return Boolean(UserStore.getCurrentUser().premiumType); + return (UserStore.getCurrentUser().premiumType ?? 0) > 0; + }, + + get canUseSticker() { + return (UserStore.getCurrentUser().premiumType ?? 0) > 1; }, getStickerLink(stickerId: string) { @@ -249,7 +253,7 @@ export default definePlugin({ if (sticker) { // when the user has Nitro and the sticker is available, send the sticker normally - if (this.canUseEmotes && sticker.available) { + if (this.canUseSticker && sticker.available) { return { cancel: false }; } |