deploy: 9b232664aa
This commit is contained in:
parent
0448f5d03c
commit
c8f42c9f40
4 changed files with 4 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","vendetta":{"icon":"ic_stage_music"},"hash":"437970406a75158d181453a306e5b003a38e6e36acfbdad4b8442eae73ff659e"}
|
||||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","vendetta":{"icon":"ic_stage_music"},"hash":"64741e14806e965845b0ebf3ed9f46fbbb4b5691352021c268ca0dc71d05fab1"}
|
||||
|
|
@ -1 +1 @@
|
|||
(function(o,r,i){"use strict";function s(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function f(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function h(e,n,t){return n&&f(e.prototype,n),t&&f(e,t),e}const y=i.findByProps("show","confirm","close"),d=i.findByProps("handleStartCall");var m=new(function(){function e(){s(this,e)}return h(e,[{key:"onLoad",value:function(){r.logger.log("MoreConfirm: patching calls..."),r.patcher.instead("handleStartCall",d,function(n,t){const[{rawRecipients:[{username:a,discriminator:u},c]},g]=n,l=g?"video call":"call";y.show({title:c?`MoreConfirm: Start a group ${l}?`:`MoreConfirm: Start a ${l} with ${a}#${u}?`,body:c?"Are you sure you want to start the group call?":`Are you sure you want to ${l} ${a}#${u}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{t(...n)}catch(w){r.logger.error("Failed to start call",w)}}})})}}]),e}());return o.default=m,Object.defineProperty(o,"__esModule",{value:!0}),o})({},vendetta,vendetta.metro);
|
||||
(function(s,u,o){"use strict";function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function h(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function w(n,t,e){return t&&h(n.prototype,t),e&&h(n,e),n}function m(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}const y=o.findByProps("show","confirm","close"),b=o.findByProps("addRelationship"),v=o.findByProps("handleStartCall"),$=o.findByProps("hideActionSheet");var C=new(function(){function n(){p(this,n),m(this,"patches",[])}return w(n,[{key:"onLoad",value:function(){var t=this;this.patches.push(u.patcher.instead("handleStartCall",v,function(e,r){const[{rawRecipients:[{username:i,discriminator:l},a]},f]=e,c=f?"video call":"call";y.show({title:a?`Start a group ${c}?`:`Start a ${c} with ${i}#${l}?`,body:a?"Are you sure you want to start the group call?":`Are you sure you want to ${c} ${i}#${l}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{r(...e)}catch(d){u.logger.error("Failed to start call",d)}}})})),this.patches.push(u.patcher.instead("addRelationship",b,function(e,r){if(typeof e[0]!="object"||!e[0].userId)return r.apply(t,e);const{username:i,discriminator:l}=o.findByStoreName("UserStore").getUser(e[0].userId),a=setInterval(function(){return $.hideActionSheet()},100);setTimeout(function(){return clearInterval(a)},3e3);const f=e[0].type===2;return new Promise(function(c){y.show({title:`${f?"Block":"Friend"} ${i}#${l}?`,body:`Are you sure you want to ${f?"block":"friend"} ${i}#${l}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{c(r.apply(t,e))}catch(d){u.logger.error("Failed to add relationship",d)}finally{clearInterval(a)}},onCancel:function(){return void clearInterval(a)}})})}))}},{key:"onUnload",value:function(){for(const t of this.patches)t()}}]),n}());return s.default=C,Object.defineProperty(s,"__esModule",{value:!0}),s})({},vendetta,vendetta.metro);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","vendetta":{"icon":"check"},"hash":"8de22f67dea0bc2345610fb7ee54d0baaef3d3a599add63da1e5445ef7b2381a"}
|
||||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","vendetta":{"icon":"check"},"hash":"29a23bbd660b07fe688d35fe8b32674e55c9b8e95917503e4894db8533113164"}
|
||||
Loading…
Add table
Reference in a new issue