mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Fix
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = class ImageOrAvatarArgumentType extends ArgumentType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async parse(value, msg, arg) {
|
async parse(value, msg, arg) {
|
||||||
const image = await this.client.registry.types.get('image').parse(value, msg, arg);
|
const image = this.client.registry.types.get('image').parse(value, msg, arg);
|
||||||
if (image) return image;
|
if (image) return image;
|
||||||
const user = await this.client.registry.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 });
|
return user.displayAvatarURL({ format: 'png', size: 512 });
|
||||||
|
|||||||
Reference in New Issue
Block a user