@theholocron/cli 5.0.0-alpha.590 → 5.0.0-alpha.591

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -6166,6 +6166,8 @@ const plural$1 = (n, word) => `${n} ${word}${n === 1 ? "" : "s"}`;
6166
6166
  function describe(result, verb) {
6167
6167
  const parts = [`read ${plural$1(result.read, "message")}`, result.toHide === 0 ? "nothing to hide" : `${verb} ${plural$1(result.toHide, "message")}`];
6168
6168
  if (result.skipped > 0) parts.push(`${result.skipped} left alone (an embed built on purpose)`);
6169
+ if (result.foreign) parts.push(`${result.foreign} left alone (a webhook this app did not make)`);
6170
+ if (result.gone) parts.push(`${result.gone} already gone`);
6169
6171
  return parts.join(", ");
6170
6172
  }
6171
6173
  /** Reads each channel, says what it would edit, asks, then hides the link previews; see the file header for the rules. */
@@ -6227,10 +6229,16 @@ async function runCleanupEmbeds(input) {
6227
6229
  channel,
6228
6230
  result
6229
6231
  });
6230
- readRows.push({
6232
+ const detail = describe(result, "would hide previews of");
6233
+ readRows.push(result.failed > 0 ? {
6234
+ ...row,
6235
+ status: "fail",
6236
+ detail,
6237
+ problems: result.problem ? [result.problem] : []
6238
+ } : {
6231
6239
  ...row,
6232
6240
  status: "skip",
6233
- detail: describe(result, "would hide previews of")
6241
+ detail
6234
6242
  });
6235
6243
  } catch (err) {
6236
6244
  const message = errorMessage(err);