Always specify size of emoji

This commit is contained in:
oSumAtrIX 2022-02-09 01:37:20 +01:00
parent 4a5ae1d205
commit e2385f0404
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 2 additions and 4 deletions

@ -39,9 +39,7 @@ module.exports = class NitroBypass extends Plugin {
// change the size of the emoji in the url
const emojiSize = this.settings.get('size', 48);
if (emojiSize != 48) {
url = url.replace(/\?size=[0-9]+/, `?size=${emojiSize}`);
}
url = url.replace(/\?size=[0-9]+/, `?size=${emojiSize}`);
// replace the message containing the emoji with the url
message.content = message.content.replace(emojiString, url);

@ -1,6 +1,6 @@
{
"name": "Nitro bypass",
"version": "1.0.2",
"version": "1.0.3",
"description": "Send any emote and screen share in high quality.",
"author": "oSumAtrIX#5767",
"license": "GPL-3.0"