catch{returnmessage.channel.send("This question has timed out. Please try again!");}
collected=collected.first().content.trim();
}else{collected=args[1];}
if(isNaN(Number(collected))){returnmessage.channel.send("You didn't give me a number!");}
letid=Number(collected);
if(id<1||id>td.lists[list].length){returnmessage.channel.send("Your number was either below 1 or doesn't have a trigger to match it.");}
try{
lettemplists=td.lists;
lettemptt=templists[list];
temptt.splice(id-1,1);
templists[list]=temptt;
td.lists=templists;
td.markModified(`lists.${list}`);
td.save();
returnmessage.channel.send(["That's one item off the list for ya!","And another one bites the dust! I've removed that item from your todo list.","And thus the list grows one item smaller!"][Math.floor(Math.random()*3)]);
}catch{returnmessage.channel.send("There seemed to have been a problem deleting that list item. Contact my devs if the problem persists.");}
}
}
else{returnmessage.channel.send("Invalid arg! Use `<add|list|delete|edit|view|complete|uncomplete>`");}
else{returnmessage.channel.send("Invalid arg! Use `<add|list|delete|edit|view|complete|uncomplete>`");}