diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-14 21:34:35 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-14 21:34:35 +0200 |
commit | 296336535f6d23c586c7e83edf0420b58cbf011a (patch) | |
tree | aa2a12bd071b36d44f43da992aa9fddfdd11bf50 /src/plugins/petpet.ts | |
parent | 563f2fb1dc2067345e4fbd71ce8da7d60d2928e1 (diff) | |
download | Vencord-296336535f6d23c586c7e83edf0420b58cbf011a.tar.gz Vencord-296336535f6d23c586c7e83edf0420b58cbf011a.tar.bz2 Vencord-296336535f6d23c586c7e83edf0420b58cbf011a.zip |
Fix modals, add wp.mapMangledModule
Diffstat (limited to 'src/plugins/petpet.ts')
-rw-r--r-- | src/plugins/petpet.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/petpet.ts b/src/plugins/petpet.ts index 0c4c29b..9d25a22 100644 --- a/src/plugins/petpet.ts +++ b/src/plugins/petpet.ts @@ -1,7 +1,7 @@ import { ApplicationCommandOptionType, findOption, ApplicationCommandInputType, Argument, CommandContext } from "../api/Commands"; import { Devs } from "../utils/constants"; import definePlugin from "../utils/types"; -import { lazy, lazyWebpack } from "../utils/misc"; +import { makeLazy, lazyWebpack } from "../utils/misc"; import { filters } from "../webpack"; const DRAFT_TYPE = 0; @@ -12,9 +12,9 @@ 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 = lazy(() => import("https://unpkg.com/gifenc@1.0.3/dist/gifenc.esm.js")); +const getGifEncoder = makeLazy(() => import("https://unpkg.com/gifenc@1.0.3/dist/gifenc.esm.js")); -const getFrames = lazy(() => Promise.all( +const getFrames = makeLazy(() => Promise.all( Array.from( { length: FRAMES }, (_, i) => loadImage(`https://raw.githubusercontent.com/VenPlugs/petpet/main/frames/pet${i}.gif`) |