message.reply("You must have the same amount of field names as you do field texts.");returnnull;
}
}
if(options.embed){
if(options.fieldnames&&options.fieldnames.length>10){message.reply("You can't have more than 10 fields!");returnnull;}
if(options.color&&options.color.length&&(![3,6].includes(options.color.length))){message.reply("Your color must be a hex value 3 or 6 digits long.");returnnull;}
if(options.title&&options.title.length>65){message.reply("Your title should be less than 65 characters, please :)");returnnull;}
if(options.description&&options.description.length>750){message.reply("Your description should be less than 750 characters.");returnnull;}
if((!options.title||!options.title.length)||(!options.description||!options.description.length)){message.reply("You need have a title and a description!");returnnull;}
if(options.image&&options.image.length>300){message.reply("Your image URL is a bit too long. Try shortening the URL or hosting it somewhere like imgur.");returnnull;}
if(options.thumbnail&&options.image.thumbnail>300){message.reply("Your thumbnail URL is a bit too long. Try shortening the URL or hosting it somewhere like imgur.");returnnull;}
if(options.fieldnames){
letfn;letft;
for(fnofoptions.fieldnames){
if(fn.length>65){message.reply("One of your field names is longer than 65 characters. Please shorten it!");returnnull;}
}for(ftofoptions.fieldtexts){
if(ft.length>500){message.reply("One of your field texts is longer than 500 characters. Please shorten it!");returnnull;}
}else{message.reply("You must specify either '-message' or '-embed' for the format of your response.");returnnull;}
if(options.channel&&options.channel.length){if(!options.channel.match(/^<#(?:\d+)>$/)&&!message.guild.channels.cache.has(options.channel.slice(options.channel.search(/\d/),options.channel.search(">")))){message.reply("You must use a valid channel in this server.");returnnull;}}