feat: lenient username and clan lookup

This commit is contained in:
TresAbhi committed 2023-05-16 02:02:50 +00:00
1 parent 9df4d52bb5
commit 9a9ea3a71a
19 files changed
+292 -209

No files matched your search

+3 -5
View File
@@ -7,10 +7,10 @@ import cmdName from '../core/interaction/cmdName.js';
import addServerChoices from '../core/options/addServerChoices.js';
import addUsernameOption from '../core/options/addUsernameOption.js';
import { args } from '../core/process/args.js';
import { AccountList } from '../types/players.js';
import { AccountList } from '../types/accountList.js';
export default {
inDevelopment: true,
inDevelopment: false,
inProduction: true,
inPublic: true,
@@ -47,9 +47,7 @@ export default {
`\`\`\`${
players.length === 0
? 'No players found.'
: players
.map((player) => markdownEscape(player.nickname))
.join('\n')
: players.map((player) => player.nickname).join('\n')
}\`\`\``,
),
],