mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
avatarURL
This commit is contained in:
@@ -24,7 +24,8 @@ module.exports = class YearsCommand 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.');
|
||||
let images = [];
|
||||
images.push(Jimp.read(avatarURL));
|
||||
images.push(Jimp.read('https://i.imgur.com/eScwGFS.png'));
|
||||
|
||||
@@ -24,7 +24,8 @@ module.exports = class BeautifulCommand 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.');
|
||||
let images = [];
|
||||
images.push(Jimp.read(avatarURL));
|
||||
images.push(Jimp.read('https://i.imgur.com/OOQ9QwQ.jpg'));
|
||||
|
||||
@@ -24,7 +24,8 @@ module.exports = class BobRossCommand 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(600, 775, 0xFFFFFFFF);
|
||||
let images = [];
|
||||
images.push(Jimp.read(avatarURL));
|
||||
|
||||
@@ -25,7 +25,8 @@ module.exports = class RIPCommand 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.');
|
||||
let images = [];
|
||||
images.push(Jimp.read(avatarURL));
|
||||
images.push(Jimp.read('https://i.imgur.com/KriteWm.jpg'));
|
||||
|
||||
@@ -25,7 +25,8 @@ module.exports = class SteamCardCommand extends Command {
|
||||
return msg.say('This Command requires the `Attach Files` Permission.');
|
||||
const { user } = args;
|
||||
const username = msg.guild ? msg.guild.member(user).displayName : user.username;
|
||||
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(494, 568, 0xFFFFFFFF);
|
||||
let images = [];
|
||||
images.push(Jimp.read(avatarURL));
|
||||
|
||||
@@ -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