Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application Command (Slash) の引数が決まっているコマンドに対して選択肢を用意する #1238

Open
m1sk9 opened this issue Jan 12, 2024 · 2 comments
Labels
C-improvement Category: improvement T-@oreorebot2/bot Type: OreOreBot2 Bot (packages/bot)

Comments

@m1sk9
Copy link
Contributor

m1sk9 commented Jan 12, 2024

/ddisplay_mode には s ( simple ) や v ( verbose ) と言ったように予め引数が決められているものに対して現状 Application Command では Options が利用できない.

OreOreBot2
CleanShot 2024-01-12 at 20 19 47@2x

ichiyoAI
CleanShot 2024-01-12 at 20 22 50@2x

Application Command のお作法的にはこの仕様はあまり褒められたものではない. Options を利用できるようにするべき.

参考:

@m1sk9 m1sk9 added C-improvement Category: improvement T-@oreorebot2/bot Type: OreOreBot2 Bot (packages/bot) labels Jan 12, 2024
@m1sk9
Copy link
Contributor Author

m1sk9 commented Jan 12, 2024

Discord API に詳しい人間 もしくは discord.js の扱いを理解している人間が取り組むべきだと思う.

@MikuroXina
Copy link
Collaborator

内部のコマンドのスキーマを Discord API の形式に変換してるのはここなので, ここを更新すれば良さそうです. https://github.com/approvers/OreOreBot2/blob/main/packages/bot/src/service/command/register/command-schema.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-improvement Category: improvement T-@oreorebot2/bot Type: OreOreBot2 Bot (packages/bot)
Projects
None yet
Development

No branches or pull requests

2 participants