aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fakeNitro.tsx
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-05-04 21:47:08 -0300
committerGitHub <noreply@github.com>2023-05-05 02:47:08 +0200
commit474932161fb6e50e90cbd4e1546255b6a520394e (patch)
tree9c62ec029314fbe8447ba85f5ef74e6870f4cc63 /src/plugins/fakeNitro.tsx
parentbd95a25f4c111c3d0e2564fb1bfcf5b8e12e87de (diff)
downloadVencord-474932161fb6e50e90cbd4e1546255b6a520394e.tar.gz
Vencord-474932161fb6e50e90cbd4e1546255b6a520394e.tar.bz2
Vencord-474932161fb6e50e90cbd4e1546255b6a520394e.zip
Fix FakeNitro Stickers (#1048)
Diffstat (limited to 'src/plugins/fakeNitro.tsx')
-rw-r--r--src/plugins/fakeNitro.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/fakeNitro.tsx b/src/plugins/fakeNitro.tsx
index b067f2a..1fb9fc3 100644
--- a/src/plugins/fakeNitro.tsx
+++ b/src/plugins/fakeNitro.tsx
@@ -641,7 +641,7 @@ export default definePlugin({
if (!settings.enableStickerBypass)
break stickerBypass;
- const sticker = StickerStore.getStickerById(extra?.stickerIds?.[0]!);
+ const sticker = StickerStore.getStickerById(extra.stickers?.[0]!);
if (!sticker)
break stickerBypass;
@@ -663,7 +663,7 @@ export default definePlugin({
link = `https://distok.top/stickers/${packId}/${sticker.id}.gif`;
}
- delete extra.stickerIds;
+ extra.stickers!.length = 0;
messageObj.content += " " + link + `&name=${encodeURIComponent(sticker.name)}`;
}
}