13 lines
367 B
JavaScript
13 lines
367 B
JavaScript
const client = require("../utils/client.js");
|
|
|
|
exports.run = async (message, args) => {
|
|
if (message.mentions[0] !== undefined) {
|
|
return message.mentions[0].avatarURL;
|
|
} else if (client.users.get(args[0]) !== undefined) {
|
|
return client.users.get(args[0]).avatarURL;
|
|
} else {
|
|
return message.author.avatarURL;
|
|
}
|
|
};
|
|
|
|
exports.aliases = ["pfp", "ava"];
|