diff options
Diffstat (limited to 'src/plugins/messageActions.ts')
-rw-r--r-- | src/plugins/messageActions.ts | 4 |
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) { |