diff --git a/commands/edit-avatar/avatar-fusion.js b/commands/edit-avatar/avatar-fusion.js index 9335b82c..9cd3a80e 100644 --- a/commands/edit-avatar/avatar-fusion.js +++ b/commands/edit-avatar/avatar-fusion.js @@ -30,8 +30,8 @@ module.exports = class AvatarFusionCommand extends Command { } async run(msg, { overlay, base }) { - const baseAvatarURL = base.displayAvatarURL({ extension: 'png', size: 512 }); - const overlayAvatarURL = overlay.displayAvatarURL({ extension: 'png', size: 512 }); + const baseAvatarURL = base.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); + const overlayAvatarURL = overlay.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); const baseAvatarData = await request.get(baseAvatarURL); const baseAvatar = await loadImage(baseAvatarData.body); const overlayAvatarData = await request.get(overlayAvatarURL); diff --git a/commands/edit-avatar/eject.js b/commands/edit-avatar/eject.js index 9d536679..6298f6ea 100644 --- a/commands/edit-avatar/eject.js +++ b/commands/edit-avatar/eject.js @@ -49,7 +49,7 @@ module.exports = class EjectCommand extends Command { } async run(msg, { user }) { - const avatarURL = user.displayAvatarURL({ extension: 'png', size: 128 }); + const avatarURL = user.displayAvatarURL({ extension: 'png', size: 128, forceStatic: true }); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); const random = MersenneTwister19937.seed(user.id); diff --git a/commands/edit-avatar/hat.js b/commands/edit-avatar/hat.js index f8ba46fd..0c56c510 100644 --- a/commands/edit-avatar/hat.js +++ b/commands/edit-avatar/hat.js @@ -139,7 +139,7 @@ module.exports = class HatCommand extends Command { async run(msg, { type, user }) { if (type === 'random') type = hatsKeys[Math.floor(Math.random() * hatsKeys.length)]; const hat = hats[type]; - const avatarURL = user.displayAvatarURL({ extension: 'png', size: 512 }); + const avatarURL = user.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'hat', hat.file)); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); diff --git a/commands/edit-avatar/he-lives-in-you.js b/commands/edit-avatar/he-lives-in-you.js index baf010b7..43bd9a47 100644 --- a/commands/edit-avatar/he-lives-in-you.js +++ b/commands/edit-avatar/he-lives-in-you.js @@ -36,7 +36,7 @@ module.exports = class HeLivesInYouCommand extends Command { } async run(msg, { user }) { - const avatarURL = user.displayAvatarURL({ extension: 'png', size: 256 }); + const avatarURL = user.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }); const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'he-lives-in-you.png')); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); diff --git a/commands/edit-avatar/hearts.js b/commands/edit-avatar/hearts.js index 4473f0cc..8d9aebe6 100644 --- a/commands/edit-avatar/hearts.js +++ b/commands/edit-avatar/hearts.js @@ -36,7 +36,7 @@ module.exports = class HeartsCommand extends Command { } async run(msg, { user }) { - const avatarURL = user.displayAvatarURL({ extension: 'png', size: 512 }); + const avatarURL = user.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'hearts.png')); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); diff --git a/commands/edit-avatar/i-have-the-power.js b/commands/edit-avatar/i-have-the-power.js index e44a6871..c2dc19fd 100644 --- a/commands/edit-avatar/i-have-the-power.js +++ b/commands/edit-avatar/i-have-the-power.js @@ -34,7 +34,7 @@ module.exports = class IHaveThePowerCommand extends Command { } async run(msg, { user }) { - const avatarURL = user.displayAvatarURL({ extension: 'png', size: 256 }); + const avatarURL = user.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }); const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'i-have-the-power.png')); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); diff --git a/commands/edit-avatar/rip.js b/commands/edit-avatar/rip.js index 5687ab73..a88cdb48 100644 --- a/commands/edit-avatar/rip.js +++ b/commands/edit-avatar/rip.js @@ -53,7 +53,7 @@ module.exports = class RipCommand extends Command { const createdYear = user.createdAt.getFullYear(); cause = `${createdYear}-${currentYear}`; } - const avatarURL = user.displayAvatarURL({ extension: 'png', size: 512 }); + const avatarURL = user.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'rip.png')); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); diff --git a/commands/edit-avatar/steam-now-playing.js b/commands/edit-avatar/steam-now-playing.js index 38db5a03..b0980c32 100644 --- a/commands/edit-avatar/steam-now-playing.js +++ b/commands/edit-avatar/steam-now-playing.js @@ -45,7 +45,7 @@ module.exports = class SteamNowPlayingCommand extends Command { } async run(msg, { game, user }) { - const avatarURL = user.displayAvatarURL({ extension: 'png', size: 64 }); + const avatarURL = user.displayAvatarURL({ extension: 'png', size: 64, forceStatic: true }); const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'steam-now-playing.png')); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); diff --git a/commands/edit-avatar/triggered.js b/commands/edit-avatar/triggered.js index 97700a7a..516ce39a 100644 --- a/commands/edit-avatar/triggered.js +++ b/commands/edit-avatar/triggered.js @@ -40,7 +40,7 @@ module.exports = class TriggeredCommand extends Command { } async run(msg, { user }) { - const avatarURL = user.displayAvatarURL({ extension: 'png', size: 512 }); + const avatarURL = user.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'triggered.png')); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); diff --git a/commands/edit-image/approved.js b/commands/edit-image/approved.js index ca4eb7c5..f23d0d54 100644 --- a/commands/edit-image/approved.js +++ b/commands/edit-image/approved.js @@ -30,7 +30,7 @@ module.exports = class ApprovedCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/ascii.js b/commands/edit-image/ascii.js index cf3c1aab..fdb48212 100644 --- a/commands/edit-image/ascii.js +++ b/commands/edit-image/ascii.js @@ -18,7 +18,7 @@ module.exports = class AsciiCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/blur.js b/commands/edit-image/blur.js index 5a5f39ac..509c6a67 100644 --- a/commands/edit-image/blur.js +++ b/commands/edit-image/blur.js @@ -27,7 +27,7 @@ module.exports = class BlurCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/bob-ross.js b/commands/edit-image/bob-ross.js index f51f84c3..dadb61d9 100644 --- a/commands/edit-image/bob-ross.js +++ b/commands/edit-image/bob-ross.js @@ -35,7 +35,7 @@ module.exports = class BobRossCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/brazzers.js b/commands/edit-image/brazzers.js index 9fb25c7a..b1c84164 100644 --- a/commands/edit-image/brazzers.js +++ b/commands/edit-image/brazzers.js @@ -28,7 +28,7 @@ module.exports = class BrazzersCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/charcoal.js b/commands/edit-image/charcoal.js index d778da63..2e99a09e 100644 --- a/commands/edit-image/charcoal.js +++ b/commands/edit-image/charcoal.js @@ -27,7 +27,7 @@ module.exports = class CharcoalCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/chocolate-milk.js b/commands/edit-image/chocolate-milk.js index ecf55717..dcc57110 100644 --- a/commands/edit-image/chocolate-milk.js +++ b/commands/edit-image/chocolate-milk.js @@ -21,7 +21,7 @@ module.exports = class ChocolateMilkCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 1024, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024, forceStatic: true }) }, { key: 'direction', diff --git a/commands/edit-image/circle.js b/commands/edit-image/circle.js index 9ce9d6ce..a8cfa3d1 100644 --- a/commands/edit-image/circle.js +++ b/commands/edit-image/circle.js @@ -20,7 +20,7 @@ module.exports = class CircleCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/communist.js b/commands/edit-image/communist.js index d1403e5c..9768a3eb 100644 --- a/commands/edit-image/communist.js +++ b/commands/edit-image/communist.js @@ -30,7 +30,7 @@ module.exports = class CommunistCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/contrast.js b/commands/edit-image/contrast.js index a7c5ae46..6f8d1916 100644 --- a/commands/edit-image/contrast.js +++ b/commands/edit-image/contrast.js @@ -20,7 +20,7 @@ module.exports = class ContrastCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/desaturate.js b/commands/edit-image/desaturate.js index 08b4ede8..bb264fa4 100644 --- a/commands/edit-image/desaturate.js +++ b/commands/edit-image/desaturate.js @@ -25,7 +25,7 @@ module.exports = class DesaturateCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/dexter.js b/commands/edit-image/dexter.js index 6c8159a0..c7b53f55 100644 --- a/commands/edit-image/dexter.js +++ b/commands/edit-image/dexter.js @@ -28,7 +28,7 @@ module.exports = class DexterCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-image/distort.js b/commands/edit-image/distort.js index 85d23d09..a7ab9004 100644 --- a/commands/edit-image/distort.js +++ b/commands/edit-image/distort.js @@ -24,7 +24,7 @@ module.exports = class DistortCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/emboss.js b/commands/edit-image/emboss.js index 2662528a..73c33950 100644 --- a/commands/edit-image/emboss.js +++ b/commands/edit-image/emboss.js @@ -27,7 +27,7 @@ module.exports = class EmbossCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/fire-frame.js b/commands/edit-image/fire-frame.js index c0aae1f7..6648a605 100644 --- a/commands/edit-image/fire-frame.js +++ b/commands/edit-image/fire-frame.js @@ -30,7 +30,7 @@ module.exports = class FireFrameCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/fish-eye.js b/commands/edit-image/fish-eye.js index f10e0a70..893f6e61 100644 --- a/commands/edit-image/fish-eye.js +++ b/commands/edit-image/fish-eye.js @@ -34,7 +34,7 @@ module.exports = class FishEyeCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/frame.js b/commands/edit-image/frame.js index 13303b09..907750ed 100644 --- a/commands/edit-image/frame.js +++ b/commands/edit-image/frame.js @@ -37,7 +37,7 @@ module.exports = class FrameCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/ghost.js b/commands/edit-image/ghost.js index 91cb571c..f9712776 100644 --- a/commands/edit-image/ghost.js +++ b/commands/edit-image/ghost.js @@ -19,7 +19,7 @@ module.exports = class GhostCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/glass-shatter.js b/commands/edit-image/glass-shatter.js index 067236ba..565defe9 100644 --- a/commands/edit-image/glass-shatter.js +++ b/commands/edit-image/glass-shatter.js @@ -29,7 +29,7 @@ module.exports = class GlassShatterCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/glitch.js b/commands/edit-image/glitch.js index 65861c34..9d0d930a 100644 --- a/commands/edit-image/glitch.js +++ b/commands/edit-image/glitch.js @@ -20,7 +20,7 @@ module.exports = class GlitchCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/greyscale.js b/commands/edit-image/greyscale.js index 898bcec0..5f44ee22 100644 --- a/commands/edit-image/greyscale.js +++ b/commands/edit-image/greyscale.js @@ -21,7 +21,7 @@ module.exports = class GreyscaleCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/gun.js b/commands/edit-image/gun.js index 0e37230e..02481fe3 100644 --- a/commands/edit-image/gun.js +++ b/commands/edit-image/gun.js @@ -28,7 +28,7 @@ module.exports = class GunCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/hands.js b/commands/edit-image/hands.js index 60304c90..9278c183 100644 --- a/commands/edit-image/hands.js +++ b/commands/edit-image/hands.js @@ -29,7 +29,7 @@ module.exports = class HandsCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/ifunny.js b/commands/edit-image/ifunny.js index 38c6013b..48764bfe 100644 --- a/commands/edit-image/ifunny.js +++ b/commands/edit-image/ifunny.js @@ -27,7 +27,7 @@ module.exports = class IfunnyCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/implode.js b/commands/edit-image/implode.js index 806ebf79..dd1ebf07 100644 --- a/commands/edit-image/implode.js +++ b/commands/edit-image/implode.js @@ -33,7 +33,7 @@ module.exports = class ImplodeCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/invert.js b/commands/edit-image/invert.js index ae358fde..b125cdee 100644 --- a/commands/edit-image/invert.js +++ b/commands/edit-image/invert.js @@ -20,7 +20,7 @@ module.exports = class InvertCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/lego-icon.js b/commands/edit-image/lego-icon.js index d526e3ba..16b2c3fe 100644 --- a/commands/edit-image/lego-icon.js +++ b/commands/edit-image/lego-icon.js @@ -35,7 +35,7 @@ module.exports = class LegoIconCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/liquid-rescale.js b/commands/edit-image/liquid-rescale.js index 15e6bac2..556e3795 100644 --- a/commands/edit-image/liquid-rescale.js +++ b/commands/edit-image/liquid-rescale.js @@ -28,7 +28,7 @@ module.exports = class LiquidRescaleCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/mirror.js b/commands/edit-image/mirror.js index 0cf61aa9..666c1ab4 100644 --- a/commands/edit-image/mirror.js +++ b/commands/edit-image/mirror.js @@ -26,7 +26,7 @@ module.exports = class MirrorCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/motion-blur.js b/commands/edit-image/motion-blur.js index 26226bc4..bc8afe41 100644 --- a/commands/edit-image/motion-blur.js +++ b/commands/edit-image/motion-blur.js @@ -21,7 +21,7 @@ module.exports = class MotionBlurCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/needs-more-jpeg.js b/commands/edit-image/needs-more-jpeg.js index 85bd1d79..701dc7d4 100644 --- a/commands/edit-image/needs-more-jpeg.js +++ b/commands/edit-image/needs-more-jpeg.js @@ -27,7 +27,7 @@ module.exports = class NeedsMoreJpegCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/noise.js b/commands/edit-image/noise.js index 94669333..3c498b8c 100644 --- a/commands/edit-image/noise.js +++ b/commands/edit-image/noise.js @@ -35,7 +35,7 @@ module.exports = class NoiseCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/oil-painting.js b/commands/edit-image/oil-painting.js index 79421cbe..a7ab4985 100644 --- a/commands/edit-image/oil-painting.js +++ b/commands/edit-image/oil-painting.js @@ -28,7 +28,7 @@ module.exports = class OilPaintingCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/old-photo.js b/commands/edit-image/old-photo.js index f506c5bc..8625d412 100644 --- a/commands/edit-image/old-photo.js +++ b/commands/edit-image/old-photo.js @@ -21,7 +21,7 @@ module.exports = class OldPhotoCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/pet.js b/commands/edit-image/pet.js index 66b5cb0b..53c8725a 100644 --- a/commands/edit-image/pet.js +++ b/commands/edit-image/pet.js @@ -23,7 +23,7 @@ module.exports = class PetCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 128, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 128 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 128, forceStatic: true }) } ] }); diff --git a/commands/edit-image/pixelize.js b/commands/edit-image/pixelize.js index 6c1d6e24..b20ba439 100644 --- a/commands/edit-image/pixelize.js +++ b/commands/edit-image/pixelize.js @@ -21,7 +21,7 @@ module.exports = class PixelizeCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/police-tape.js b/commands/edit-image/police-tape.js index 895ac9cc..1f58b105 100644 --- a/commands/edit-image/police-tape.js +++ b/commands/edit-image/police-tape.js @@ -30,7 +30,7 @@ module.exports = class PoliceTapeCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/rainbow.js b/commands/edit-image/rainbow.js index 92eff9e1..190eca94 100644 --- a/commands/edit-image/rainbow.js +++ b/commands/edit-image/rainbow.js @@ -21,7 +21,7 @@ module.exports = class RainbowCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/rejected.js b/commands/edit-image/rejected.js index 8d581446..1f8d131b 100644 --- a/commands/edit-image/rejected.js +++ b/commands/edit-image/rejected.js @@ -30,7 +30,7 @@ module.exports = class RejctedCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/resize.js b/commands/edit-image/resize.js index 8a5683f6..d4b12fcd 100644 --- a/commands/edit-image/resize.js +++ b/commands/edit-image/resize.js @@ -30,7 +30,7 @@ module.exports = class ResizeCommand extends Command { { key: 'image', type: 'image-or-avatar', - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 2048 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 2048, forceStatic: true }) } ] }); diff --git a/commands/edit-image/rotate.js b/commands/edit-image/rotate.js index 6f2d01d1..af949209 100644 --- a/commands/edit-image/rotate.js +++ b/commands/edit-image/rotate.js @@ -25,7 +25,7 @@ module.exports = class RotateCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/sepia.js b/commands/edit-image/sepia.js index d622f3b5..57ea3a92 100644 --- a/commands/edit-image/sepia.js +++ b/commands/edit-image/sepia.js @@ -20,7 +20,7 @@ module.exports = class SepiaCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/shake.js b/commands/edit-image/shake.js index 671b3dd9..bd3dc7b3 100644 --- a/commands/edit-image/shake.js +++ b/commands/edit-image/shake.js @@ -27,7 +27,7 @@ module.exports = class ShakeCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/silhouette.js b/commands/edit-image/silhouette.js index 240772ae..e2439bdc 100644 --- a/commands/edit-image/silhouette.js +++ b/commands/edit-image/silhouette.js @@ -20,7 +20,7 @@ module.exports = class SilhouetteCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/sip.js b/commands/edit-image/sip.js index b8971634..68178388 100644 --- a/commands/edit-image/sip.js +++ b/commands/edit-image/sip.js @@ -29,7 +29,7 @@ module.exports = class SipCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 1024, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024, forceStatic: true }) }, { key: 'direction', diff --git a/commands/edit-image/sketch.js b/commands/edit-image/sketch.js index 6b2b114b..b3cabd26 100644 --- a/commands/edit-image/sketch.js +++ b/commands/edit-image/sketch.js @@ -32,7 +32,7 @@ module.exports = class SketchCommand extends Command { type: 'image-or-avatar', maxAttachmentSize: 2e+6, avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/snapchat.js b/commands/edit-image/snapchat.js index ee2250f1..3a19c488 100644 --- a/commands/edit-image/snapchat.js +++ b/commands/edit-image/snapchat.js @@ -38,7 +38,7 @@ module.exports = class SnapchatCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/spaghetti.js b/commands/edit-image/spaghetti.js index cd98f656..6d8a4b64 100644 --- a/commands/edit-image/spaghetti.js +++ b/commands/edit-image/spaghetti.js @@ -32,7 +32,7 @@ module.exports = class SpaghettiCommand extends Command { type: 'image-or-avatar', maxAttachmentSize: 2e+6, avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/spotify-now-playing.js b/commands/edit-image/spotify-now-playing.js index fce3601d..868bd79f 100644 --- a/commands/edit-image/spotify-now-playing.js +++ b/commands/edit-image/spotify-now-playing.js @@ -50,7 +50,7 @@ module.exports = class SpotifyNowPlayingCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-image/square.js b/commands/edit-image/square.js index cb3a6296..d6518037 100644 --- a/commands/edit-image/square.js +++ b/commands/edit-image/square.js @@ -19,7 +19,7 @@ module.exports = class SquareCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/squish.js b/commands/edit-image/squish.js index 3c67241b..d2daa026 100644 --- a/commands/edit-image/squish.js +++ b/commands/edit-image/squish.js @@ -34,7 +34,7 @@ module.exports = class SquishCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/steam-card.js b/commands/edit-image/steam-card.js index cbdbaaa6..359e8ceb 100644 --- a/commands/edit-image/steam-card.js +++ b/commands/edit-image/steam-card.js @@ -46,7 +46,7 @@ module.exports = class SteamCardCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-image/subtitle.js b/commands/edit-image/subtitle.js index 5e4ea2ca..d62d4f59 100644 --- a/commands/edit-image/subtitle.js +++ b/commands/edit-image/subtitle.js @@ -34,7 +34,7 @@ module.exports = class SubtitleCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/swirl.js b/commands/edit-image/swirl.js index be65b158..592bb5f5 100644 --- a/commands/edit-image/swirl.js +++ b/commands/edit-image/swirl.js @@ -33,7 +33,7 @@ module.exports = class SwirlCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/tint.js b/commands/edit-image/tint.js index f0a517fb..01a63179 100644 --- a/commands/edit-image/tint.js +++ b/commands/edit-image/tint.js @@ -25,7 +25,7 @@ module.exports = class TintCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/trans.js b/commands/edit-image/trans.js index 7562da49..c87e69be 100644 --- a/commands/edit-image/trans.js +++ b/commands/edit-image/trans.js @@ -21,7 +21,7 @@ module.exports = class TransCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/vignette.js b/commands/edit-image/vignette.js index 194bcbe7..85d54e34 100644 --- a/commands/edit-image/vignette.js +++ b/commands/edit-image/vignette.js @@ -20,7 +20,7 @@ module.exports = class VignetteCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/wanted.js b/commands/edit-image/wanted.js index 7f2d258a..ccd43bf2 100644 --- a/commands/edit-image/wanted.js +++ b/commands/edit-image/wanted.js @@ -30,7 +30,7 @@ module.exports = class WantedCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-image/wild-pokemon.js b/commands/edit-image/wild-pokemon.js index 08742ebe..818727be 100644 --- a/commands/edit-image/wild-pokemon.js +++ b/commands/edit-image/wild-pokemon.js @@ -40,7 +40,7 @@ module.exports = class WildPokemonCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 128, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 128 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 128, forceStatic: true }) } ] }); diff --git a/commands/edit-image/you-died.js b/commands/edit-image/you-died.js index 965bb1b1..3691490a 100644 --- a/commands/edit-image/you-died.js +++ b/commands/edit-image/you-died.js @@ -29,7 +29,7 @@ module.exports = class YouDiedCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/3000-years.js b/commands/edit-meme/3000-years.js index 5ea309b2..885bd75b 100644 --- a/commands/edit-meme/3000-years.js +++ b/commands/edit-meme/3000-years.js @@ -29,7 +29,7 @@ module.exports = class ThreeThousandYearsCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/beautiful.js b/commands/edit-meme/beautiful.js index 92fee18e..3206b067 100644 --- a/commands/edit-meme/beautiful.js +++ b/commands/edit-meme/beautiful.js @@ -40,7 +40,7 @@ module.exports = class BeautifulCommand extends Command { } async run(msg, { user }) { - const avatarURL = user.displayAvatarURL({ extension: 'png', size: 128 }); + const avatarURL = user.displayAvatarURL({ extension: 'png', size: 128, forceStatic: true }); const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'beautiful.png')); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); diff --git a/commands/edit-meme/bottom-text.js b/commands/edit-meme/bottom-text.js index a1c834d6..6a12b6be 100644 --- a/commands/edit-meme/bottom-text.js +++ b/commands/edit-meme/bottom-text.js @@ -31,7 +31,7 @@ module.exports = class BottomTextCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/challenger.js b/commands/edit-meme/challenger.js index 321d63e2..72b1d837 100644 --- a/commands/edit-meme/challenger.js +++ b/commands/edit-meme/challenger.js @@ -102,7 +102,7 @@ module.exports = class ChallengerCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/crush.js b/commands/edit-meme/crush.js index a91bc85f..a79095bd 100644 --- a/commands/edit-meme/crush.js +++ b/commands/edit-meme/crush.js @@ -30,7 +30,7 @@ module.exports = class CrushCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/deep-fry.js b/commands/edit-meme/deep-fry.js index 1648eb2c..cffce004 100644 --- a/commands/edit-meme/deep-fry.js +++ b/commands/edit-meme/deep-fry.js @@ -20,7 +20,7 @@ module.exports = class DeepFryCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/demotivational.js b/commands/edit-meme/demotivational.js index a1053c36..2e5135cb 100644 --- a/commands/edit-meme/demotivational.js +++ b/commands/edit-meme/demotivational.js @@ -40,7 +40,7 @@ module.exports = class DemotivationalCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/dislike.js b/commands/edit-meme/dislike.js index a8ed29da..8e6e7adc 100644 --- a/commands/edit-meme/dislike.js +++ b/commands/edit-meme/dislike.js @@ -29,7 +29,7 @@ module.exports = class DislikeCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 1024, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/distracted-boyfriend.js b/commands/edit-meme/distracted-boyfriend.js index 706d4140..f58efc3d 100644 --- a/commands/edit-meme/distracted-boyfriend.js +++ b/commands/edit-meme/distracted-boyfriend.js @@ -43,9 +43,9 @@ module.exports = class DistractedBoyfriendCommand extends Command { } async run(msg, { otherGirl, girlfriend, boyfriend }) { - const boyfriendAvatarURL = boyfriend.displayAvatarURL({ extension: 'png', size: 256 }); - const girlfriendAvatarURL = girlfriend.displayAvatarURL({ extension: 'png', size: 256 }); - const otherGirlAvatarURL = otherGirl.displayAvatarURL({ extension: 'png', size: 256 }); + const boyfriendAvatarURL = boyfriend.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }); + const girlfriendAvatarURL = girlfriend.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }); + const otherGirlAvatarURL = otherGirl.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }); const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'distracted-boyfriend.png')); const boyfriendAvatarData = await request.get(boyfriendAvatarURL); const boyfriendAvatar = await loadImage(boyfriendAvatarData.body); diff --git a/commands/edit-meme/enslaved.js b/commands/edit-meme/enslaved.js index f8232401..fd5e5300 100644 --- a/commands/edit-meme/enslaved.js +++ b/commands/edit-meme/enslaved.js @@ -35,7 +35,7 @@ module.exports = class EnslavedCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/food-broke.js b/commands/edit-meme/food-broke.js index 38a7b5d3..473923e4 100644 --- a/commands/edit-meme/food-broke.js +++ b/commands/edit-meme/food-broke.js @@ -36,7 +36,7 @@ module.exports = class FoodBrokeCommand extends Command { } async run(msg, { user }) { - const avatarURL = user.displayAvatarURL({ extension: 'png', size: 128 }); + const avatarURL = user.displayAvatarURL({ extension: 'png', size: 128, forceStatic: true }); const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'food-broke.png')); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); diff --git a/commands/edit-meme/for-five-hours.js b/commands/edit-meme/for-five-hours.js index d85d4d81..f2944c1b 100644 --- a/commands/edit-meme/for-five-hours.js +++ b/commands/edit-meme/for-five-hours.js @@ -29,7 +29,7 @@ module.exports = class ForFiveHoursCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 1024, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/girl-worth-fighting-for.js b/commands/edit-meme/girl-worth-fighting-for.js index 1c4cbc4f..22627c24 100644 --- a/commands/edit-meme/girl-worth-fighting-for.js +++ b/commands/edit-meme/girl-worth-fighting-for.js @@ -36,7 +36,7 @@ module.exports = class GirlWorthFightingForCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/i-fear-no-man.js b/commands/edit-meme/i-fear-no-man.js index 73622ba3..9473841a 100644 --- a/commands/edit-meme/i-fear-no-man.js +++ b/commands/edit-meme/i-fear-no-man.js @@ -30,7 +30,7 @@ module.exports = class IFearNoManCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/kyon-gun.js b/commands/edit-meme/kyon-gun.js index 1c3123ba..970731f7 100644 --- a/commands/edit-meme/kyon-gun.js +++ b/commands/edit-meme/kyon-gun.js @@ -34,7 +34,7 @@ module.exports = class KyonGunCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/like.js b/commands/edit-meme/like.js index e1684bf1..295774fe 100644 --- a/commands/edit-meme/like.js +++ b/commands/edit-meme/like.js @@ -29,7 +29,7 @@ module.exports = class LikeCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 1024, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/look-at-this-photograph.js b/commands/edit-meme/look-at-this-photograph.js index 47ddc323..7d0ffe03 100644 --- a/commands/edit-meme/look-at-this-photograph.js +++ b/commands/edit-meme/look-at-this-photograph.js @@ -29,7 +29,7 @@ module.exports = class LookAtThisPhotographCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/look-what-karen-have.js b/commands/edit-meme/look-what-karen-have.js index c4b33240..b9c2f185 100644 --- a/commands/edit-meme/look-what-karen-have.js +++ b/commands/edit-meme/look-what-karen-have.js @@ -35,7 +35,7 @@ module.exports = class LookWhatKarenHaveCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/meme-gen.js b/commands/edit-meme/meme-gen.js index ebec6a03..bc0ef701 100644 --- a/commands/edit-meme/meme-gen.js +++ b/commands/edit-meme/meme-gen.js @@ -41,7 +41,7 @@ module.exports = class MemeGenCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/metamorphosis.js b/commands/edit-meme/metamorphosis.js index aeb74eb0..8eafe4cc 100644 --- a/commands/edit-meme/metamorphosis.js +++ b/commands/edit-meme/metamorphosis.js @@ -41,7 +41,7 @@ module.exports = class MetamorphosisCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/my-collection-grows.js b/commands/edit-meme/my-collection-grows.js index b18e2c1d..b38750f9 100644 --- a/commands/edit-meme/my-collection-grows.js +++ b/commands/edit-meme/my-collection-grows.js @@ -30,7 +30,7 @@ module.exports = class MyCollectionGrowsCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/nike-ad.js b/commands/edit-meme/nike-ad.js index b69cde02..4e618ad1 100644 --- a/commands/edit-meme/nike-ad.js +++ b/commands/edit-meme/nike-ad.js @@ -45,7 +45,7 @@ module.exports = class NikeAdCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/reaction-meme.js b/commands/edit-meme/reaction-meme.js index af741424..65282964 100644 --- a/commands/edit-meme/reaction-meme.js +++ b/commands/edit-meme/reaction-meme.js @@ -33,7 +33,7 @@ module.exports = class ReactionMemeCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 1024, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/sexy-singles.js b/commands/edit-meme/sexy-singles.js index 6a6813ba..6416ba9f 100644 --- a/commands/edit-meme/sexy-singles.js +++ b/commands/edit-meme/sexy-singles.js @@ -23,7 +23,7 @@ module.exports = class SexySinglesCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 1024, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/skyrim-skill.js b/commands/edit-meme/skyrim-skill.js index 3a54aa7a..58ceedc8 100644 --- a/commands/edit-meme/skyrim-skill.js +++ b/commands/edit-meme/skyrim-skill.js @@ -41,7 +41,7 @@ module.exports = class SkyrimSkillCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 1024, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/sora-selfie.js b/commands/edit-meme/sora-selfie.js index 8ce79c84..37babd13 100644 --- a/commands/edit-meme/sora-selfie.js +++ b/commands/edit-meme/sora-selfie.js @@ -35,7 +35,7 @@ module.exports = class SoraSelfieCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/this-guy.js b/commands/edit-meme/this-guy.js index b90c4165..454d4d53 100644 --- a/commands/edit-meme/this-guy.js +++ b/commands/edit-meme/this-guy.js @@ -30,7 +30,7 @@ module.exports = class ThisGuyCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/thug-life.js b/commands/edit-meme/thug-life.js index 8c6c3941..cf4519c2 100644 --- a/commands/edit-meme/thug-life.js +++ b/commands/edit-meme/thug-life.js @@ -30,7 +30,7 @@ module.exports = class ThugLifeCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/to-be-continued.js b/commands/edit-meme/to-be-continued.js index 2f16045a..8c191f77 100644 --- a/commands/edit-meme/to-be-continued.js +++ b/commands/edit-meme/to-be-continued.js @@ -29,7 +29,7 @@ module.exports = class ToBeContinuedCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/ugly.js b/commands/edit-meme/ugly.js index d981688c..d5099c86 100644 --- a/commands/edit-meme/ugly.js +++ b/commands/edit-meme/ugly.js @@ -30,7 +30,7 @@ module.exports = class UglyCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/ultimate-tattoo.js b/commands/edit-meme/ultimate-tattoo.js index c7cc1779..18acbf64 100644 --- a/commands/edit-meme/ultimate-tattoo.js +++ b/commands/edit-meme/ultimate-tattoo.js @@ -30,7 +30,7 @@ module.exports = class UltimateTattooCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 256, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/vietnam-flashbacks.js b/commands/edit-meme/vietnam-flashbacks.js index 6efc623e..7cafa1e3 100644 --- a/commands/edit-meme/vietnam-flashbacks.js +++ b/commands/edit-meme/vietnam-flashbacks.js @@ -28,7 +28,7 @@ module.exports = class VietnamFlashbacksCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/edit-meme/worse-than-hitler.js b/commands/edit-meme/worse-than-hitler.js index b3f174b3..5bad9d3c 100644 --- a/commands/edit-meme/worse-than-hitler.js +++ b/commands/edit-meme/worse-than-hitler.js @@ -35,7 +35,7 @@ module.exports = class WorseThanHitlerCommand extends Command { } async run(msg, { user }) { - const avatarURL = user.displayAvatarURL({ extension: 'png', size: 256 }); + const avatarURL = user.displayAvatarURL({ extension: 'png', size: 256, forceStatic: true }); const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'worse-than-hitler.png')); const { body } = await request.get(avatarURL); const avatar = await loadImage(body); diff --git a/commands/edit-meme/worthless.js b/commands/edit-meme/worthless.js index fd16f789..d98acd63 100644 --- a/commands/edit-meme/worthless.js +++ b/commands/edit-meme/worthless.js @@ -30,7 +30,7 @@ module.exports = class WorthlessCommand extends Command { key: 'image', type: 'image-or-avatar', avatarSize: 512, - default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 }) + default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }) } ] }); diff --git a/commands/games-mp/car-race.js b/commands/games-mp/car-race.js index e461dce6..2f486eda 100644 --- a/commands/games-mp/car-race.js +++ b/commands/games-mp/car-race.js @@ -364,7 +364,7 @@ module.exports = class CarRaceCommand extends Command { userData.car = await loadImage( path.join(__dirname, '..', '..', 'assets', 'images', 'car-race', 'cars', `${car}.png`) ); - const userAvatar = await request.get(msg.author.displayAvatarURL({ extension: 'png', size: 128 })); + const userAvatar = await request.get(msg.author.displayAvatarURL({ extension: 'png', size: 128, forceStatic: true })); userData.avatar = await loadImage(userAvatar.body); let difficulty; const available = cars.filter(car2 => car !== car2); @@ -411,7 +411,7 @@ module.exports = class CarRaceCommand extends Command { ); } } - const oppoAvatar = await request.get(opponent.displayAvatarURL({ extension: 'png', size: 128 })); + const oppoAvatar = await request.get(opponent.displayAvatarURL({ extension: 'png', size: 128, forceStatic: true })); oppoData.avatar = await loadImage(oppoAvatar.body); let lastRoundWinner; let lastTurnTimeout = false; diff --git a/commands/random-seed/friendship.js b/commands/random-seed/friendship.js index d354826a..6fff71cd 100644 --- a/commands/random-seed/friendship.js +++ b/commands/random-seed/friendship.js @@ -63,8 +63,8 @@ module.exports = class FriendshipCommand extends Command { const random = MersenneTwister19937.seed(calculated); level = integer(0, 100)(random); } - const firstAvatarURL = first.displayAvatarURL({ extension: 'png', size: 512 }); - const secondAvatarURL = second.displayAvatarURL({ extension: 'png', size: 512 }); + const firstAvatarURL = first.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); + const secondAvatarURL = second.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); const firstAvatarData = await request.get(firstAvatarURL); const firstAvatar = await loadImage(firstAvatarData.body); const secondAvatarData = await request.get(secondAvatarURL); diff --git a/commands/random-seed/ship.js b/commands/random-seed/ship.js index 8cfece13..d2da7da2 100644 --- a/commands/random-seed/ship.js +++ b/commands/random-seed/ship.js @@ -66,8 +66,8 @@ module.exports = class ShipCommand extends Command { const random = MersenneTwister19937.seed(calculated); level = integer(0, 100)(random); } - const firstAvatarURL = first.displayAvatarURL({ extension: 'png', size: 512 }); - const secondAvatarURL = second.displayAvatarURL({ extension: 'png', size: 512 }); + const firstAvatarURL = first.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); + const secondAvatarURL = second.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); const firstAvatarData = await request.get(firstAvatarURL); const firstAvatar = await loadImage(firstAvatarData.body); const secondAvatarData = await request.get(secondAvatarURL); diff --git a/commands/random-seed/think-of.js b/commands/random-seed/think-of.js index 0604ee93..2ad4c3f8 100644 --- a/commands/random-seed/think-of.js +++ b/commands/random-seed/think-of.js @@ -60,8 +60,8 @@ module.exports = class ThinkOfCommand extends Command { const random = MersenneTwister19937.seed(calculated); thought = thoughts[integer(0, thoughts.length - 1)(random)]; } - const firstAvatarURL = first.displayAvatarURL({ extension: 'png', size: 512 }); - const secondAvatarURL = second.displayAvatarURL({ extension: 'png', size: 512 }); + const firstAvatarURL = first.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); + const secondAvatarURL = second.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true }); const firstAvatarData = await request.get(firstAvatarURL); const firstAvatar = await loadImage(firstAvatarData.body); const secondAvatarData = await request.get(secondAvatarURL); diff --git a/package.json b/package.json index 31c250f4..1105e309 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "152.3.0", + "version": "152.3.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/types/image-or-avatar.js b/types/image-or-avatar.js index 2c6b8e23..98af6f14 100644 --- a/types/image-or-avatar.js +++ b/types/image-or-avatar.js @@ -15,7 +15,7 @@ module.exports = class ImageOrAvatarArgument extends Argument { const image = this.client.registry.types.get('image').parse(value, msg, arg); if (image) return image; const user = await this.client.registry.types.get('user').parse(value, msg, arg); - return user.displayAvatarURL({ extension: 'png', size: arg.avatarSize }); + return user.displayAvatarURL({ extension: 'png', size: arg.avatarSize, forceStatic: true }); } isEmpty(value, msg, arg) {