This commit is contained in:
Daniel Odendahl Jr
2018-03-23 11:19:11 +00:00
parent 1044a1d880
commit 45dbe67efa
+2 -2
View File
@@ -6,11 +6,11 @@ class AvatarArgumentType extends ArgumentType {
}
validate(value, msg, arg) {
return this.client.types.get('user').validate(value, msg, arg);
return this.client.registry.types.get('user').validate(value, msg, arg);
}
async parse(value, msg, arg) {
const user = await this.client.types.get('user').parse(value, msg, arg);
const user = await this.client.registry.types.get('user').parse(value, msg, arg);
return user.displayAvatarURL({ format: 'png', size: 512 });
}
}