returnnewCommandResult(CommandResultType.INVALIDARGS,"Please input a city name.");//or a address.");
}else{
channel.sendTyping().queue();
Stringsword=String.join(" ",args);
try{
//www.yahoo.com changed its endpoint - there's no longer a AJAX API for weather info, and the search autocomplete is basically just a prefix search which is way inferior; so we use ca.news.yahoo.com instead
//no weather info update time anymore, just credit accuweather ig
embedmsg.setFooter("Powered by Accuweather / Yahoo",null);
try{
MessageEmbedfmsg=embedmsg.build();
channel.sendMessageEmbeds(fmsg).queue();
}catch(InsufficientPermissionExceptione2){
returnnewCommandResult(CommandResultType.FAILURE,"Unfortunately, the bot is missing the permission `MESSAGE_EMBED_LINKS` which is required for this command to work.");