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

Question. #108

Closed
buttermiilk opened this issue Feb 16, 2021 · 2 comments
Closed

Question. #108

buttermiilk opened this issue Feb 16, 2021 · 2 comments
Labels
question Further information is requested

Comments

@buttermiilk
Copy link
Contributor

buttermiilk commented Feb 16, 2021

How can I map out all the available commands?

This line didn't provide what I expected:

client.commands.registers

And I also used

for (const group of Object.keys(client.commands.groups)) {
      client.commands.groups.get(group).map(x => x.name)
      }

but it didn't work as I expected, too.

EDIT: Fix misspelled stuff.

@maisans-maid
Copy link
Collaborator

maisans-maid commented Feb 16, 2021

you spelled it incorrectly, it should work using client.commands.groups instead of client.commands.group.

Also, it should be Object.keys() instead of Object.key()

@maisans-maid maisans-maid added the question Further information is requested label Feb 16, 2021
@buttermiilk
Copy link
Contributor Author

Lol, I actually forgot to check what was I typing. I meant, I expected something different that I can use levenshtein algorithm to compare the usable command(s) with the misspelled one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants