답변 하기 버튼 추가 및 버튼 클릭 시 정답 제출 형식 보여주는 모달 생성하는 기능 구현#19
Merged
Conversation
- interaction 패키지를 discord-event로 변경 - commands 패키지를 slash 폴더로 변경 - handlers패키지 안에 interaction폴더 생성 - slash 폴더를 interaction폴더 하위로 이동
- cs문제 형식에 답변하기 버튼 추가 - "답변하기" 버튼 클릭 시 "정답 제출 형식을 보여주는 모달"을 생성하는 이벤트 구현
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 관련 이슈
resolves #18
📝 작업 내용
keyword제거interaction패키지를discord-event로 변경commands패키지를slash폴더로 변경handlers패키지 안에interaction폴더 생성interaction패키지 하위에 상호작용 타입별 구현체 배치🍇 고민한 부분
Discord.js의 Interaction 타입 계층을 반영하여 코드 구조를 개선하였습니다.
새로운 상호작용 추가가 용이하게끔 확장성을 고려하였습니다.
변경된 디렉토리 구조
keyword 필드 제거
MVP 단계에서 핵심 기능에 집중하고자 정답 처리가 모호한 키워드 문제 형식 제거했습니다.
문제 제출 형식을 모달 형식으로 한 이유
모달에 문제를 보이게 한 이유
🏞️ 스크린샷