mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
+2
-2
@@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user