From f89acf8d5dad62828605ee51a94dcfd5ce0aec88 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Mon, 27 Jan 2025 10:18:16 -0500 Subject: [PATCH] resolve isues --- src/plugins/emoteCloner/index.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/emoteCloner/index.tsx b/src/plugins/emoteCloner/index.tsx index 71579fa77..484f5eea8 100644 --- a/src/plugins/emoteCloner/index.tsx +++ b/src/plugins/emoteCloner/index.tsx @@ -283,6 +283,9 @@ function CloneModal({ data }: { data: Sticker | Emoji; }) { ); } +/** + * makes the return type of the arg fetchData of {@link buildMenuItem} based on the type arg + */ type Discriminate< U extends { "t": string; }, K extends U["t"] @@ -449,8 +452,8 @@ export default definePlugin({ // covers no emoji and unicode emojis if (emoji?.id == null) return; - ContextMenuApi.openContextMenuLazy(ev, async () => { - return () => (