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

Addition to more advanced slash command features e.g. autocomplete and additional parameters from slash command #35

Open
krisppurg opened this issue Aug 12, 2024 · 0 comments

Comments

@krisppurg
Copy link
Contributor

krisppurg commented Aug 12, 2024

Reference to #13, #24 and most of slash command proposal changes combined
Since it has been long time no changes were made. Wouldn't mind to help assist with any testing or any design choices.

From https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command

let config = ApplicationCommand(description_localizations: ..., default_permission: some true, default_member_permissions: {...})
handler.addSlash("randomstuff", config) do (...):
  ...
 ## or
let handler = proc (...) = ...
handler.addSlash("randomstuff", config, handler)
## or possibly back to the old macro
proc randomstuff(...) {.slash(handler, config).} =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant