Skip to content

Commit 6341bfa

Browse files
committed
refactor: change role ID configurations in env.ts to use optional environment variables
1 parent 8c8882d commit 6341bfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/env.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export const config = {
2828
? requireEnv('MODERATORS_ROLE_IDS').split(',')
2929
: [],
3030
repel: requireEnv('REPEL_ROLE_ID'),
31-
a: requireEnv('ROLE_A_ID'),
32-
b: requireEnv('ROLE_B_ID'),
33-
c: requireEnv('ROLE_C_ID'),
31+
a: optionalEnv('ROLE_A_ID'),
32+
b: optionalEnv('ROLE_B_ID'),
33+
c: optionalEnv('ROLE_C_ID'),
3434
},
3535
channelIds: {
3636
repelLogs: requireEnv('REPEL_LOG_CHANNEL_ID'),

0 commit comments

Comments
 (0)