aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/messageActions.ts
diff options
context:
space:
mode:
authorArjixWasTaken <53124886+ArjixWasTaken@users.noreply.github.com>2022-08-31 21:53:36 +0300
committerGitHub <noreply@github.com>2022-08-31 20:53:36 +0200
commitc3ff092162ef1a98bea78213e473be3207998d72 (patch)
tree96b5f04944064c7021cdd60e1b44e3bade2aacc2 /src/plugins/messageActions.ts
parenta7ccbcfca4f181790b86199a7f31d1ae19e0253f (diff)
downloadVencord-c3ff092162ef1a98bea78213e473be3207998d72.tar.gz
Vencord-c3ff092162ef1a98bea78213e473be3207998d72.tar.bz2
Vencord-c3ff092162ef1a98bea78213e473be3207998d72.zip
Add nitro bypass (#4)
Diffstat (limited to 'src/plugins/messageActions.ts')
-rw-r--r--src/plugins/messageActions.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/messageActions.ts b/src/plugins/messageActions.ts
index 5519cf7..88e625e 100644
--- a/src/plugins/messageActions.ts
+++ b/src/plugins/messageActions.ts
@@ -1,4 +1,4 @@
-import { MessageClicks } from "../api";
+import { addClickListener } from "../api/MessageEvents";
import definePlugin from "../utils/types";
import { find, findByProps } from "../webpack";
@@ -21,7 +21,7 @@ export default definePlugin({
if (e.key === "Backspace") isDeletePressed = false;
});
- MessageClicks.addListener((msg, chan, event) => {
+ addClickListener((msg, chan, event) => {
const isMe = msg.author.id === getCurrentUser().id;
if (!isDeletePressed) {
if (isMe && event.detail >= 2) {