aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/petpet.ts
diff options
context:
space:
mode:
authorNico <nico@d3sox.me>2022-11-07 22:23:34 +0100
committerGitHub <noreply@github.com>2022-11-07 22:23:34 +0100
commit7d5ade21fc9b56d21e2eb9e5b0d35502432adaa2 (patch)
treef89faaff4d3ddae39c20ecf84bf0ce6cd12a696e /src/plugins/petpet.ts
parentd69dfd62057182756610f4dbc644d074301d9433 (diff)
downloadVencord-7d5ade21fc9b56d21e2eb9e5b0d35502432adaa2.tar.gz
Vencord-7d5ade21fc9b56d21e2eb9e5b0d35502432adaa2.tar.bz2
Vencord-7d5ade21fc9b56d21e2eb9e5b0d35502432adaa2.zip
feat(nitroBypass): add sticker bypass (#184)
Co-authored-by: Vendicated <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/petpet.ts')
-rw-r--r--src/plugins/petpet.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/petpet.ts b/src/plugins/petpet.ts
index 093acba..961d47a 100644
--- a/src/plugins/petpet.ts
+++ b/src/plugins/petpet.ts
@@ -17,8 +17,9 @@
*/
import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext, findOption } from "../api/Commands";
+import { lazyWebpack, makeLazy } from "../utils";
import { Devs } from "../utils/constants";
-import { lazyWebpack, makeLazy } from "../utils/misc";
+import { getGifEncoder } from "../utils/dependencies";
import definePlugin from "../utils/types";
import { filters } from "../webpack";
@@ -27,11 +28,6 @@ const DEFAULT_DELAY = 20;
const DEFAULT_RESOLUTION = 128;
const FRAMES = 10;
-// https://github.com/mattdesl/gifenc
-// this lib is way better than gif.js and all other libs, they're all so terrible but this one is nice
-// @ts-ignore ts mad
-const getGifEncoder = makeLazy(() => import("https://unpkg.com/gifenc@1.0.3/dist/gifenc.esm.js"));
-
const getFrames = makeLazy(() => Promise.all(
Array.from(
{ length: FRAMES },