mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Use forceStatic
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user