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

Add autocomplete #13

Open
ire4ever1190 opened this issue Mar 6, 2022 · 0 comments
Open

Add autocomplete #13

ire4ever1190 opened this issue Mar 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ire4ever1190
Copy link
Owner

Add easy syntax to support autocomplete. Current idea at the moment is

proc nameComplete(i: Interaction, current: string) {.async.} =
  discard

cmd.addSlash("ping") do (name {.complete: nameComplete.}: string) {.async.} =
  echo name

I think its a bit verbose though so might improve it once I play around with auto complete for a bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant