diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/moulberry-bush/capes.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands/moulberry-bush/capes.ts b/src/commands/moulberry-bush/capes.ts index 0b2fcad..032f62d 100644 --- a/src/commands/moulberry-bush/capes.ts +++ b/src/commands/moulberry-bush/capes.ts @@ -114,7 +114,9 @@ export default class CapesCommand extends BushCommand { findAllMatches: true }).search(interaction.options.getFocused().toString()); - const res = fuzzy.slice(0, fuzzy.length >= 25 ? 25 : undefined).map((v) => ({ name: v.item, value: v.item })); + const res = (fuzzy.length ? fuzzy : capes.map((c) => ({ item: c }))) + .slice(0, fuzzy.length >= 25 ? 25 : undefined) + .map((v) => ({ name: v.item, value: v.item })); void interaction.respond(res); } |