aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-08-31 20:55:58 +0200
committerVendicated <vendicated@riseup.net>2022-08-31 20:55:58 +0200
commit9b4926ccdc2de7cbe88d95e19aa8f0a9525360d2 (patch)
tree47f2a2ce526162c1a67c07182c8c9fd1221b6457 /src/plugins
parentc3ff092162ef1a98bea78213e473be3207998d72 (diff)
downloadVencord-9b4926ccdc2de7cbe88d95e19aa8f0a9525360d2.tar.gz
Vencord-9b4926ccdc2de7cbe88d95e19aa8f0a9525360d2.tar.bz2
Vencord-9b4926ccdc2de7cbe88d95e19aa8f0a9525360d2.zip
Fix webpack path
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/nitroBypass.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/plugins/nitroBypass.ts b/src/plugins/nitroBypass.ts
index 25c1aa6..4831618 100644
--- a/src/plugins/nitroBypass.ts
+++ b/src/plugins/nitroBypass.ts
@@ -1,6 +1,6 @@
import { addPreSendListener, addPreEditListener } from "../api/MessageEvents";
-import { findByProps } from "../utils/webpack";
-import definePlugin from "../utils/types"
+import { findByProps } from "../webpack";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "Nitro Bypass",
@@ -17,7 +17,7 @@ export default definePlugin({
return {
match: new RegExp(`${func}:function\\(.+?}`),
replace: `${func}:function (e) { return true; }`
- }
+ };
})
},
],
@@ -26,11 +26,11 @@ export default definePlugin({
// Remove any nitro requirements for any of the streaming settings.
findByProps("ApplicationStreamPresets")
- .ApplicationStreamSettingRequirements
- .forEach(x => {
- delete x.userPremiumType;
- delete x.guildPremiumTier
- });
+ .ApplicationStreamSettingRequirements
+ .forEach(x => {
+ delete x.userPremiumType;
+ delete x.guildPremiumTier;
+ });
addPreSendListener((_, messageObj) => {
const guildId = window.location.href.split("channels/")[1].split("/")[0];
@@ -42,7 +42,7 @@ export default definePlugin({
const url = emoji.url.replace(/\?size=[0-9]+/, `?size=48`);
messageObj.content = messageObj.content.replace(emojiString, ` ${url} `);
}
- })
+ });
addPreEditListener((_, __, messageObj) => {
const guildId = window.location.href.split("channels/")[1].split("/")[0];
@@ -53,6 +53,6 @@ export default definePlugin({
const url = emoji.url.replace(/\?size=[0-9]+/, `?size=48`);
messageObj.content = messageObj.content.replace(emojiStr, ` ${url} `);
}
- })
+ });
},
-})
+});