mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 08:14:47 +02:00
Make size smaller
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = class FireCommand extends Command {
|
||||
}
|
||||
|
||||
async run(msg, { user }) {
|
||||
const avatarURL = user.displayAvatarURL({ extension: 'png', size: 512 });
|
||||
const avatarURL = user.displayAvatarURL({ extension: 'png', size: 256 });
|
||||
const { body } = await request.get(avatarURL);
|
||||
const avatar = await loadImage(body);
|
||||
const encoder = new GIFEncoder(avatar.width, avatar.height);
|
||||
|
||||
Reference in New Issue
Block a user