mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
isEmpty
This commit is contained in:
+1
-2
@@ -27,9 +27,8 @@ class ImageArgumentType extends ArgumentType {
|
||||
}
|
||||
|
||||
isEmpty(value, msg) {
|
||||
console.log('isEmpty ran');
|
||||
if (!msg.attachments.size) return !value;
|
||||
return Boolean(msg.attachments.size);
|
||||
return !msg.attachments.size;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user