aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/gifPaste.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/gifPaste.ts')
-rw-r--r--src/plugins/gifPaste.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/gifPaste.ts b/src/plugins/gifPaste.ts
index fa64f30..f1dfb2f 100644
--- a/src/plugins/gifPaste.ts
+++ b/src/plugins/gifPaste.ts
@@ -17,9 +17,9 @@
*/
import { Devs } from "@utils/constants";
+import { insertTextIntoChatInputBox } from "@utils/discord";
import definePlugin from "@utils/types";
import { filters, mapMangledModuleLazy } from "@webpack";
-import { ComponentDispatch } from "@webpack/common";
const ExpressionPickerState = mapMangledModuleLazy('name:"expression-picker-last-active-view"', {
close: filters.byCode("activeView:null", "setState")
@@ -40,7 +40,7 @@ export default definePlugin({
handleSelect(gif?: { url: string; }) {
if (gif) {
- ComponentDispatch.dispatchToLastSubscribed("INSERT_TEXT", { rawText: gif.url + " " });
+ insertTextIntoChatInputBox(gif.url + " ");
ExpressionPickerState.close();
}
}