aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/apiMessageClicks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/apiMessageClicks.ts')
-rw-r--r--src/plugins/apiMessageClicks.ts16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/plugins/apiMessageClicks.ts b/src/plugins/apiMessageClicks.ts
deleted file mode 100644
index 7155b94..0000000
--- a/src/plugins/apiMessageClicks.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import definePlugin from "../utils/types";
-
-export default definePlugin({
- name: "MessageClicksApi",
- description: "Api required by anything using message click actions",
- author: "Vendicated",
- patches: [{
- find: "if(e.altKey){",
- replacement: {
- match: /\.useClickMessage=function\((.{1,2}),(.{1,2})\).+?function\((.{1,2})\){/,
- replace: (m, message, channel, event) =>
- // the message param is shadowed by the event param, so need to alias them
- `${m.replace("{", `{var _msg=${message};var _chan=${channel};`)}Vencord.Api.MessageClicks._handleClick(_msg, _chan, ${event});`
- }
- }]
-});