Skip to content

Add autocomplete #13

Description

@ire4ever1190

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions