Skip to content

infoコマンドのサブコマンドをchoicesに変更#45

Open
yuu1111 wants to merge 1 commit into
TeamFelNull:developfrom
yuu1111:refactor/info-command-choices
Open

infoコマンドのサブコマンドをchoicesに変更#45
yuu1111 wants to merge 1 commit into
TeamFelNull:developfrom
yuu1111:refactor/info-command-choices

Conversation

@yuu1111

@yuu1111 yuu1111 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • /info のサジェストが about/oss/work の3行で表示されサジェスト一覧を圧迫していたため、SubcommandDataOptionType.STRING + addChoice に置き換え
  • Discord 上の /info サジェストが1行に集約され、type パラメータで about/oss/work を選択する形になる
  • ハンドラ側の分岐を event.getSubcommandName() から event.getOption("type").getAsString() に変更

Test plan

  • BOT起動後に Discord で /info のサジェストが1行のみ表示されることを確認
  • /info type:BOT情報 で about の Embed が表示されることを確認
  • /info type:OSSクレジット で oss の Embed が表示されることを確認
  • /info type:稼働情報 で work の Embed が表示されることを確認

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant