aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fakeNitro.tsx
diff options
context:
space:
mode:
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)}`;
}
}