Skip to content

포럼 신청 포맷 단순화: role 필드 제거 #32

@SamTheKorean

Description

@SamTheKorean

배경

현재 신청 포맷:
```
github: username team: leetcode07 role: leetcode07
```

`team`과 `role`이 항상 동일한 값을 가짐. 코드에서도 두 값 모두 같은 `ROLE_TEAM_CONFIG` 배열에서 `value`로 조회하기 때문에, `team: leetcode07`만 있으면 해당 entry의 `discordRoleId`와 `teamSlug` 모두 얻을 수 있음.

제안

`role` 필드를 제거하고 `team` 하나로 GitHub 팀 초대 + Discord 역할 부여를 모두 처리.

변경 후 신청 포맷:
```
github: username team: teamname
```

작업 범위

  • parseJoinMessage: role 필드 파싱 제거
  • processVerify: roleValue 파라미터 제거, teamConfig.discordRoleId 직접 사용
  • handleChannelJoin: parsed.role 제거
  • 에러 메시지 포맷 안내 업데이트
  • scripts/register-commands.ts: /verify 커맨드에서 role 옵션 제거

관련 pr

#36

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions