/avatar user default self
This commit is contained in:
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: [{
|
||||
|
Loading…
x
Reference in New Issue
Block a user