fix: properly handle duplicated channels
Node.js CI / CI (push) Successful in 27s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m31s

This commit is contained in:
2025-12-30 11:55:51 -08:00
parent a8a58faf3c
commit 402acffb5c
3 changed files with 58 additions and 43 deletions
+4 -10
View File
@@ -3,15 +3,9 @@
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import type { ProgressReminder } from "../interfaces/reminder.js";
interface Channel {
channelId: string;
roleId: string;
name: string;
createThread: boolean;
}
const nhcarriganMentorshipChannels: Array<Channel> = [
const nhcarriganMentorshipChannels: Array<ProgressReminder> = [
{
channelId: "1400630073010163792",
createThread: true,
@@ -19,7 +13,7 @@ const nhcarriganMentorshipChannels: Array<Channel> = [
roleId: "1400588705273745550",
},
];
const freeCodeCampSprintChannels: Array<Channel> = [
const freeCodeCampSprintChannels: Array<ProgressReminder> = [
{
channelId: "1400935953887006861",
createThread: true,
@@ -49,7 +43,7 @@ const freeCodeCampSprintChannels: Array<Channel> = [
/**
* The channels to post progress reminders in.
*/
export const progressReminders: Array<Channel> = [
export const progressReminders: Array<ProgressReminder> = [
...nhcarriganMentorshipChannels,
...freeCodeCampSprintChannels,
];