Default functions

This commit is contained in:
Daniel Odendahl Jr
2017-11-28 17:17:40 +00:00
parent 41076d933d
commit bb4c323bb7
4 changed files with 122 additions and 3 deletions
+1 -2
View File
@@ -21,14 +21,13 @@ module.exports = class YearsCommand extends Command {
key: 'user',
prompt: 'Which user would you like to edit the avatar of?',
type: 'user',
default: ''
default: msg => msg.author
}
]
});
}
async run(msg, { user }) {
if (!user) user = msg.author;
const avatarURL = user.displayAvatarURL({
format: 'png',
size: 256