generated from nhcarrigan/template
feat: new slash commands and bug fixes #23
@@ -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