Use forceStatic

This commit is contained in:
Dragon Fire
2024-09-13 15:14:27 -04:00
parent e4696e0420
commit f78c7f1154
109 changed files with 116 additions and 116 deletions
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+3 -3
View File
@@ -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);
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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 })
}
]
});
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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 })
}
]
});