refactor: update plugins to use $self (#478)

Co-authored-by: Ven <vendicated@riseup.net>
This commit is contained in:
fawn
2023-02-10 21:41:49 +00:00
committed by GitHub
parent 1d995e58f5
commit d95be1acba
19 changed files with 26 additions and 26 deletions

View File

@ -42,7 +42,7 @@ export default definePlugin({
// voice/stage channels
{
match: /onClick:function\(\)\{(e\.handleClick.+?)}/g,
replace: "onClick:function(){Vencord.Plugins.plugins.VoiceChatDoubleClick.schedule(()=>{$1},e)}",
replace: "onClick:function(){$self.schedule(()=>{$1},e)}",
},
],
},