generated from nhcarrigan/template
fix: suppress non-critical RetroAchievements fetch errors
Errors from the RA API are silently swallowed since the job retries every 10 minutes and failures are expected during brief outages.
This commit is contained in:
@@ -23,7 +23,6 @@ import {
|
|||||||
type MessageActionRowComponentBuilder,
|
type MessageActionRowComponentBuilder,
|
||||||
} from "discord.js";
|
} from "discord.js";
|
||||||
import { ids } from "../config/ids.js";
|
import { ids } from "../config/ids.js";
|
||||||
import { logger } from "../utils/logger.js";
|
|
||||||
import type { Amari } from "../interfaces/amari.js";
|
import type { Amari } from "../interfaces/amari.js";
|
||||||
|
|
||||||
const username = "naomilgbt";
|
const username = "naomilgbt";
|
||||||
@@ -117,9 +116,7 @@ export const checkRetroAchievements = async(
|
|||||||
flags: [ MessageFlags.IsComponentsV2 ],
|
flags: [ MessageFlags.IsComponentsV2 ],
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
} catch (error) {
|
} catch {
|
||||||
if (error instanceof Error) {
|
// Fetch errors from RetroAchievements are non-critical; the job retries every 10 minutes.
|
||||||
await logger.error("checkRetroAchievements module", error);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user