mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
avatarURL
This commit is contained in:
@@ -21,7 +21,8 @@ module.exports = class TriggeredCommand extends Command {
|
||||
if (!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES'))
|
||||
return msg.say('This Command requires the `Attach Files` Permission.');
|
||||
const { user } = args;
|
||||
const avatarURL = user.displayAvatarURL.replace(/(png|jpg|jpeg|gif|webp)/, 'png');
|
||||
const avatarURL = user.avatarURL('png', 512);
|
||||
if (!avatarURL) return msg.say('This user has no avatar.');
|
||||
const blank = new Jimp(320, 371, 0xFFFFFFFF);
|
||||
let images = [];
|
||||
images.push(Jimp.read(avatarURL));
|
||||
|
||||
Reference in New Issue
Block a user