This commit is contained in:
Daniel Odendahl Jr
2017-11-19 20:35:05 +00:00
parent 36c17d8988
commit af0ad02068
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -25,6 +25,11 @@ class ImageArgumentType extends ArgumentType {
}
return msg.attachments.first().url;
}
isEmpty(value, msg) {
if (!msg.attachments.size) return !value;
return Boolean(msg.attachments.size);
}
}
module.exports = ImageArgumentType;