/avatar user default self

This commit is contained in:
Lamp 2021-12-03 00:31:42 -08:00
parent c788a1ff04
commit 606aa4b72f

@ -71,12 +71,11 @@ var commands = module.exports = [
{
name: "user",
description: "can i not leave some obvious descriptions blank?",
type: "USER",
required: true
type: "USER"
}
],
exec: async i => {
var user = i.options.getUser("user");
var user = i.options.getUser("user") || i.user;
var au = user.avatarURL({size:4096, dynamic: true});
var an = au.split('/').pop(); an = an.substring(0, an.indexOf('?'));
i.reply({files: [{attachment: au, name: an}], embeds: [{