aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/vcDoubleClick.ts
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2022-11-14 18:05:41 +0100
committerGitHub <noreply@github.com>2022-11-14 18:05:41 +0100
commit82e444e19635a72d2e1c4d043840bdfd358fa120 (patch)
tree85e4bc94fb6c9a7bebc3a56e311fdf967aeeb2d5 /src/plugins/vcDoubleClick.ts
parenta96f8a89f36ccb980334da2274385373aa3ffb24 (diff)
downloadVencord-82e444e19635a72d2e1c4d043840bdfd358fa120.tar.gz
Vencord-82e444e19635a72d2e1c4d043840bdfd358fa120.tar.bz2
Vencord-82e444e19635a72d2e1c4d043840bdfd358fa120.zip
Less confusing plugin names (bulk plugin rename) (#214)
Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com>
Diffstat (limited to 'src/plugins/vcDoubleClick.ts')
-rw-r--r--src/plugins/vcDoubleClick.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/vcDoubleClick.ts b/src/plugins/vcDoubleClick.ts
index b1a0558..68dc480 100644
--- a/src/plugins/vcDoubleClick.ts
+++ b/src/plugins/vcDoubleClick.ts
@@ -16,6 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+import { migratePluginSettings } from "../api/settings";
import { Devs } from "../utils/constants";
import definePlugin from "../utils/types";
import { SelectedChannelStore } from "../webpack/common";
@@ -25,9 +26,10 @@ const timers = {} as Record<string, {
i: number;
}>;
+migratePluginSettings("VoiceChatDoubleClick", "vcDoubleClick");
export default definePlugin({
- name: "vcDoubleClick",
- description: "Join VCs via DoubleClick instead of single click",
+ name: "VoiceChatDoubleClick",
+ description: "Join voice chats via double click instead of single click",
authors: [Devs.Ven, Devs.D3SOX],
patches: [
{
@@ -40,12 +42,12 @@ export default definePlugin({
// voice channels
{
match: /onClick:(.*)function\(\)\{(e\.handleClick.+?)}/g,
- replace: "onClick:$1function(){Vencord.Plugins.plugins.vcDoubleClick.schedule(()=>{$2}, e)}",
+ replace: "onClick:$1function(){Vencord.Plugins.plugins.VoiceChatDoubleClick.schedule(()=>{$2}, e)}",
},
// stage channels
{
match: /onClick:(.{0,15})this\.handleClick,/g,
- replace: "onClick:$1(...args)=>Vencord.Plugins.plugins.vcDoubleClick.schedule(()=>{this.handleClick(...args);}, args[0]),",
+ replace: "onClick:$1(...args)=>Vencord.Plugins.plugins.VoiceChatDoubleClick.schedule(()=>{this.handleClick(...args);}, args[0]),",
}
],
},