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