anipalur / anipalur/gce-a-levels-bot
Add more default options to common replies
- Ngôn ngữ chính
- JavaScript
- Star
- 1
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Discord Username
Not specified.
### Related Problem
As of now, `ephemeral: true` must be specified in all replies from the [Reply class](https://github.com/anipalur/gce-a-levels-bot/blob/main/src/tools/common-replies.js#L23 "View the Reply class tools file."), and `fetchReply: true` must be specified in all 'confirmation' replies.
### Enhancement Description
- Set `ephemeral: true` as the default for all common replies.
- Set `fetchReply: true` as the default for ['confirmation' replies](https://github.com/anipalur/gce-a-levels-bot/blob/0dcbee9af737350b7f70bcff5dc07de1969a571c/src/tools/common-replies.js#L29C2-L65 "View the 'confirmation' replies.").
This removes the need to specify these options every time a common reply is used. Adding `fetchReply: true` is needed since the 'confirmation' replies need to be fetched to create an interaction collector on them.
### Additional Information
None.
### Code of Conduct
- [X] I agree to abide by the Code of Conduct.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.