//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
countryShort=wQualifiedName.substring(wQualifiedName.lastIndexOf(",")+1);//the display name from yahoo is not always consistent with Java's Locale display name, so we extract from qualified name instead
region=wQualifiedName.split(",")[wQualifiedName.split(",").length-2];//get second highest level, highest should always be country code
StringimgUrl=info.getJSONArray("photos").getJSONObject(0).getJSONArray("resolutions").getJSONObject(0).getString("url");//seems to have dead urls, how fix
footer="Weather info last updated: "+OffsetDateTime.parse(obs.getJSONObject("observationTime").getString("timestamp")).format(DateTimeFormatter.RFC_1123_DATE_TIME)
returnnewCommandResult(CommandResultType.FAILURE,"Unfortunately, the bot is missing the permission `MESSAGE_EMBED_LINKS` which is required for this command to work.");