diff options
Diffstat (limited to 'src/commands/user/pfp.ts')
| -rw-r--r-- | src/commands/user/pfp.ts | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/commands/user/pfp.ts b/src/commands/user/pfp.ts deleted file mode 100644 index ac26a26..0000000 --- a/src/commands/user/pfp.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import { MessageEmbed } from 'discord.js'; -import emoji from 'emoji-random'; - -module.exports = class PFPServer extends Command { - constructor(client) { - super(client, { - name: 'pfp', - aliases: [ - 'profilepicture', - 'profile-picture', - 'profileimage', - 'profile-image', - 'avatar', - 'avi' - ], - group: 'user', - memberName: 'pfp', - description: 'Grabs the profile picture of a specified user.', - args: [ - { - key: 'userID', - prompt: 'Which user\'s profile picture would you like to grab?', - type: 'string' - } - ], - examples: ['uwu!pfp @sin#1337'], - throttling: { - usages: 5, - duration: 30 - }, - guildOnly: true - }); - } - run(msg: CommandoMessage, { userID } ) { - userID = msg.mentions.users.first()?.id; - this.client.users.fetch(userID).then(user => { - let emb = new MessageEmbed() - .setColor(0xFFCC4D) - .setTitle(`${msg.mentions.users.first()?.username}'s Profile Picture ` + emoji.random()) - .setImage(user.avatarURL()) - msg.say(emb) - }) - } -};
\ No newline at end of file |