Skip to content

Commit

Permalink
ocg-jp: workaround fix
Browse files Browse the repository at this point in the history
  • Loading branch information
salix5 committed Oct 27, 2023
1 parent 3f55b04 commit 6c40162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/ocg-jp.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
var ret = filter_choice(interaction, choice_table);
const focused = interaction.options.getFocused();
const id_list = [];
if (focused && ret.length < MAX_CHOICE) {
/*if (focused && ret.length < MAX_CHOICE) {
const ruby_max_length = MAX_CHOICE - ret.length;
const starts_with = [];
const other = [];
Expand All @@ -43,7 +43,7 @@ module.exports = {
if (ruby_ret.length > ruby_max_length)
ruby_ret.length = ruby_max_length;
ret = ret.concat(ruby_ret);
}
}*/
await interaction.respond(
ret.map(choice => ({ name: choice, value: choice })),
);
Expand Down

0 comments on commit 6c40162

Please sign in to comment.