fix: replace deprecated ephemeral flag and add error handling across modules

- Replace `ephemeral: true` with `flags: [ MessageFlags.Ephemeral ]` in all command files
- Add try/catch with logger.error to logMenteeJoin, checkAchievements, processMentorshipRole
- Extract handleIssueOpened and handlePrOpened helpers in processGitHubEvent to reduce complexity
- Add logger.error calls in all newly introduced catch blocks
This commit is contained in:
2026-03-03 12:04:20 -08:00
parent 5beebeff44
commit 3f89b7eb4f
8 changed files with 149 additions and 95 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ export const onboardMentee = async(
const githubUsername = interaction.options.getString("github_username", true);
const menteeUser = interaction.options.getUser("mentee", true);
await interaction.deferReply({ ephemeral: true });
await interaction.deferReply({ flags: [ MessageFlags.Ephemeral ] });
try {
const repoUrl = await setupMenteeRepository(amari, githubUsername);