avamaxboobs
Version:
A package for randomly selecting images of various people's boobs. Intended to be used for discord bot commands.
19 lines (15 loc) • 651 B
JavaScript
const{addToList} = require('../list/addToList')
/**
* Adds multiple objects to the boobsvideos list
* @param {ArrayOfObjects} objects the objects you want to add. Each one must contain a title, url and thumbnail property.
*/
async function addMultipleBoobsVideos(objects){
if(!objects) throw new Error('You must provide the objects you want to add!')
if(typeof objects !='object'||!objects.length) throw new Error('objects must be an array of objects, each containing a title, thumbnail and url property.')
objects.forEach(object=>{
addToList('boobsvideos',object)
});
}
module.exports={
addMultipleBoobsVideos
}