Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Adding a new Resource requires an Author, but can't list them all yet

未关闭
#20 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
typescript
领域
backend

调研方向

该 issue 未指明文件、测试或入口点。首先查看链接的 Discord Select Menu 和 Autocomplete Interaction 文档,然后检查现有的 /add-resource 作者选择流程。Done 应提供一个确定的方案,使用户能够选择超过当前 25 个选项限制的 Authors。

由索引模型根据 Issue 内容生成。

描述

enhancement help wanted

Problem

When adding a new Resource the Author field is currently required. Currently the list of Authors is restricted to 25 as this is the maximum number of options that can be listed in a Select Menu for discord. Discord documentation

We need a new approach for selecting Authors as part of the /add-resource command.

I have thought about a few approaches that could be taken, but other ideas are welcome.

1) Make Author Optional

This would make it possible to add Resources without an Author and therefore allow submissions to continue.
Pros
Simple change
Immediately allows submissions of articles where the Authors are currently not listed
Cons
Data quality is reduced
Authors should be searchable

2) Add Paging Options

Change the first (apart from the first page) and last options in the Select Menu to be paging selections
Pros
Allows all Authors to be listed (eventually)
Possibly a simple code change
Cons
Finding an Author near the end of the list will take a long time

3) Create an index strategy

Sort all of the Authors into buckets, with a maximum of 25 entries at each level, e.g.

A-B
|-> Aa - Ag
  |-> Aaron Aardvaark
      Aaron Smith
      Abbey Mills
      ...
      Agatha Doe

Pros
Potentially faster average time to find authors
Should be possible to list all authors
Cons
Relies on consistent naming of Authors to make sense to users. e.g. Firstname, Surname or Surname, Firstname

4) Autocomplete Interaction

It should be possible to create an Autocomplete Message Interaction to allow searching for Authors.
Pros
Makes it possible to search for an Author
Cons
This does not seem to be supported by discord.js at this time

主要语言
TypeScript
星标
29
派生
8
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Developer-DAO/devie-bot 的其他 Issue

查看 Developer-DAO/devie-bot 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。