import { Command, CommandoMessage } from 'discord.js-commando'; module.exports = class PFPServer extends Command { constructor(client) { super(client, { name: 'pfp', aliases: ['profilepicture', 'profile-picture', 'profileimage', 'profile-image'], group: 'server', memberName: 'pfp', description: 'Grabs the profile picture of a given user.', args: [ { key: 'userID', prompt: 'Which user\'s profile picture would you like to grab?', type: 'string' } ], examples: ['uwu!pfp @sin#1337'] }); } run(msg: CommandoMessage, { userID } ) { userID = msg.mentions.users.first()?.id; this.client.users.fetch(userID).then(user => { msg.reply({ files: [user.avatarURL()] }) }) } };