discord-rpc-contructor
Advanced tools
Comparing version 1.0.5 to 1.1.0
19
index.js
@@ -256,2 +256,12 @@ module.exports = (function (e) { | ||
setAssetsLargeImage(e) { | ||
// Gif support | ||
if ( | ||
typeof e == 'string' && | ||
(e.startsWith('https://') || e.startsWith('http://')) && | ||
e.includes('external') && e.includes('discord') | ||
) { | ||
e = `mp:external${ | ||
e.split('external')[1] | ||
}`; | ||
} | ||
return ( | ||
@@ -266,2 +276,11 @@ this.verifyNull(), | ||
setAssetsSmallImage(e) { | ||
// Gif support | ||
if ( | ||
typeof e == 'string' && | ||
(e.startsWith('https://') || e.startsWith('http://')) && | ||
e.includes('external') && | ||
e.includes('discord') | ||
) { | ||
e = `mp:external${e.split('external')[1]}`; | ||
} | ||
return ( | ||
@@ -268,0 +287,0 @@ this.verifyNull(), |
{ | ||
"name": "discord-rpc-contructor", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"description": "Create Discord RPC for SelfBot", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
104594
2138